Question
Write a program of c++ that will allow a user to input the original price of an item. The program will show the sales price
Write a program of c++ that will allow a user to input the original price of an item. The program will show the sales price of the item based on the rate of the discount shown in the sample run below .
Hints:
Make sure your data types for your variables are appropriate
The user must be able to enter the original price at the keyboard
Sales price = Original price (1 - Percent off). For example, if you take 20 percent off of a $100 item, the sale price will be 100 (1 - .20) = $80.
Format your output to line up columns and data in your chart
Sample Run:
Please enter the original price of the item:
100.00
Original Price: $100.00
Discount Rate Sales Price
10% $90.00
20% $80.00
40% $60.00
60% $40.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started