Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribedc++ 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 amountl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions

Question

Choose an appropriate organizational pattern for your speech

Answered: 1 week ago

Question

Writing a Strong Conclusion

Answered: 1 week ago