Question: C++ Write a program that takes in input the price of an item followed by the desired discount option 1 (for 10%), 2 (for 20%)
Write a program that takes in input the price of an item followed by the desired discount option 1 (for 10%), 2 (for 20%) or 3(for 30%). Enter these values in the input box The program will output the final price of the item. The final price is $4.50. If any other value for option is given (other than 1,2 or 3) the output should be Wrong option! Check for the correctness of the price (must be greater than 0). If it's not correct, the output message should contain the word 'error Use swtich statements to choose the options. Use the following syntax to print the final price with two digits after the comma (requires library iomanip): cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
