#include using namespace std; int main() { //Write your main here return 0; To make a profit, a local store marks up the prices of its items by a certain percentage. Write a C++ program that reads: 1. The original price of the item sold 2. The percentage of the marked-up price 3. The sales tax rate. The program then outputs: 1. The original price of the item 2. The percentage of the mark-up 3. The store's selling price of the item 4. The sales tax rate 5. The sales tax 6. The final price of the item. (The final price of the item is the selling price plus the sales tax.) Since your program handles currency, make sure to use a data type that can store decimals. input 1: 100 29.9 8.6 input 2: 23.95 30.29 7.9

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
#include <iostream>
using namespace std;
int main() {
//Write your main here
return 0;
To make a profit, a local store marks up the prices of its items by a certain percentage.
Write a C++ program that reads:
1. The original price of the item sold
2. The percentage of the marked-up price
3. The sales tax rate.
The program then outputs:
1. The original price of the item
2. The percentage of the mark-up
3. The store's selling price of the item
4. The sales tax rate
5. The sales tax
6. The final price of the item.
(The final price of the item is the selling price plus the sales tax.)
Since your program handles currency, make sure to use a data type that can store
decimals.
input 1: 100 29.9 8.6
input 2: 23.95 30.29 7.9
Transcribed Image Text:#include <iostream> using namespace std; int main() { //Write your main here return 0; To make a profit, a local store marks up the prices of its items by a certain percentage. Write a C++ program that reads: 1. The original price of the item sold 2. The percentage of the marked-up price 3. The sales tax rate. The program then outputs: 1. The original price of the item 2. The percentage of the mark-up 3. The store's selling price of the item 4. The sales tax rate 5. The sales tax 6. The final price of the item. (The final price of the item is the selling price plus the sales tax.) Since your program handles currency, make sure to use a data type that can store decimals. input 1: 100 29.9 8.6 input 2: 23.95 30.29 7.9
Expert Solution
Introduction

The below formulas are used to calculate selling price, sales tax and the final price:

  • If an item is sold for the markup percentage on the selling price then the selling price of the item is calculated is as follows
  • selling price= original price × mark up price /100
  • If the sales tax range is given then the sales tax of the selling price is calculated as follows
  • sales tax =selling price × sales tax rate/100
  • Then the final price of the item is calculated as follows
  • final price= selling price +sales tax
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY