Question: Write a program that will ask the user to enter the quantity of a particular item purchased and the unit price of the item. The

Write a program that will ask the user to enter the quantity of a particular item purchased and the unit price of the item. The program will calculate the discounted unit price of the item (i.e. after a discount of15% is applied), and the total price of all the items purchased (i.e . quantity) at the discounted price.

The program should display the following:

  • an appropriate heading
  • the quantity of the item purchased
  • the discounted unit price of the item
  • the total price at the discounted price
  • the total discount (i.e total amount saved)
  • your name and student id, course name, and section number before the program ends

First, write an algorithm for the problem. Verify the steps of the algorithm. Check with some numbers to make sure the algorithm work according to the specifications of the program.

Create a new Project in Visual C++. Choose a good name.

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!