Question: In this lab, you will create a C + + program that prompts the user to enter three product names and their corresponding prices. The
In this lab, you will create a C program that prompts the user to enter three product names and their corresponding prices. The program will calculate the tax at a rate of and display the subtotal, tax amount, and grand total for the products.
Requirements
Task : User Input
Prompt the user to enter the name and price of the first product.
Repeat this step two more times for the remaining two products.
Task : Calculations
Calculate the subtotal by adding up the prices of the three products.
Calculate the tax amount by multiplying the subtotal by the tax rate
Calculate the grand total by adding the subtotal and tax amount.
Task : Display Results
Display the product names, prices, subtotal, tax amount, and grand total in a formatted manner.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
