Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ format *Write a program that computes the tax and tip on a restaurant bill for a patron based on what they ordered. The tax
c++ format
*Write a program that computes the tax and tip on a restaurant bill for a patron based on what they ordered. The tax should be 6.75 percent of the meal cost, if the service was good the tip should be 20 percent of the total after adding the tax, if the service was poor the tip should be 1 596. Display the meal cost, tax amount, tip amount, and the total bill on the screen. Utilize at least one constant variable. *Your program will be tested against different inputs.* Suggestion: Complete each part one at a time to ensure at least some credit. Use at least one constant variable.* (1) Ask the user for the price of the three items that they ordered. Output the total of the items. (Submit for 5 point) What was the price of each of the items that you ordered? Item 1: [display your amount] Item 2: $ [display your amount] Item 3: $ [display your amount] Your items total: (2) Compute the tax owed on the meal and the new subtotal including tax. North Carolinas food tax is a rate of 6.75% (Submit for 5 points. Item 1: $ [display your amount Item 2: $ [display your amount Item 3: $ [display your amount] Your items total: [display your amount] The tax owed on your bill is: $Idisplay your amount] Your subtotal is now: $[display your amount] 3) Allow your user to determine the level of tip they would like to leave the user. Show them their final total with the tip included. Item 1: $ [display your amount Item 2: $ [display your amount Item 3: $ [display your amount Your items total: [display your amount] The tax oWed on vour hill:SIdisplay vour amountlStep 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