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
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