Question
I need help with this in C++. Instructions You are raising funds for a charity by selling items door-to-door. You cannot figure out sales tax
I need help with this in C++.
Instructions
You are raising funds for a charity by selling items door-to-door. You cannot figure out sales tax in your head, so you will use a program to do that. Assume each customer will only buy three items. Please note: You will need to rerun the program for each customer. Your program will ask for the price of the first item and output the price of the first item. Then, the same for the second item, and then, the third item. See the Sample Run below. Please note: In your future programs, you will NOT need to display the values just entered back to the user; we are just doing it here, so you see how the value immediately gets stored in the variable, i.e., in memory, so you can use it later.
Your program will then separately calculate the subtotal price without sales tax, the amount of tax, i.e., assume you are in Orlando where the tax rate is 6.5%, and calculate the total, i.e., including the tax.
Then, output the subtotal, tax, and total. See the Sample Run below.
Note: This program does not use any selection constructs, arrays, loops, or functions other than main(); just input/output, constants, variables, assignment statements, and arithmetic.
Sample Run
Interaction with your program should look like this: (user input is bolded)
Enter the price of the first item: 2.50
You entered 2.50.
Enter the price of the second item: 8.00
You entered 8.00.
Enter the price of the third item: 0
You entered 0.00.
The subtotal of your order is: $ 10.50
The tax for your order is: $ 0.68
The total with tax is: $ 11.18
Thanks for supporting <
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