Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ program, please write the code with the header; Q1 :Write a program that asks the user to enter a meal name and its cost

C++ program, please write the code with the header;

Q1 :Write a program that asks the user to enter a meal name and its cost in a restaurant, and then computes the tax and tip on the restaurant bill for that meal. The tax should be 6.75 percent of the meal cost, and the tip should be 20 percent of the total after adding the tax. Display the meal name, meal cost, tax amount, tip amount, and total bill on the screen.

Q2: There are three seating categories at a football stadium. Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from each class ticket sales, and the total amount of sales on the screen.

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

LO4 Provide an overview of four challenges facing HR today.

Answered: 1 week ago