Question: please write a program in c + + that Ask the user for the price of a phone and the number of phones he /

please write a program in c++ that Ask the user for the price of a phone and the number of phones he/she wants to purchase.
Calculate and display subtotal, tax amount, and total price.
Set the tax rate of 8.75% as a constant value.
Note: Bold info is input from user. Make sure to give an error message if a negative number is inputted by the user. Do not forget to add comments to your code.
Sample Dialogue:
Price: 45.99
Number of phones: 2
Subtotal: $91.98
Tax: $8.05
Total: $100.03

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!