1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
devlian [24]
3 years ago
8

Write a program that computes the tax and tip on a restaurant bill for a patron a $88.67 meal charge. The tax should be 6.75 per

cent of the meal cost. The tip should be 20 percent of the total after adding the tax. Display the meal cost, tax amount, tip mount, and total bill on the screen.
Computers and Technology
1 answer:
Lina20 [59]3 years ago
5 0

Answer:

C++ code is writtern below with explanation in comments

Explanation:

#include <iostream>

using namespace std;

int main()

{

//declare all the required fields in double format

   double mealCost =88.67;

   double taxPercenatage=6.75;

   double tipPercentage=20;

// displaying the original Meal Cost

   cout<< "Meal Cost: "<<mealCost<<endl;

// get the total tax percentage from meal cost

   double totalTax= taxPercenatage /100 * mealCost;

// display the tax amount

   cout<< "Tax Amount: "<<totalTax<<endl;

// getting tip amount from meal cost and tax amount.

   double totalTip = tipPercentage/100 * (mealCost+totalTax);

//displaying tip amount

   cout<< "Tip Amount: "<<totalTip<<endl;

// now adding all three values and get total amount that customer

// has to pay

   double totalAmount = mealCost+totalTax+totalTip;

//Displaying total amount

   cout<< "Total Bill: "<<totalAmount<<endl;

   return 0;

}

Output

Meal Cost: 88.67

Tax Amount: 5.98523

Tip Amount: 18.931

Total Bill: 113.586

You might be interested in
Which of these does Open Office or Microsoft Office Wizard do?
irakobra [83]
Microsoft office wizard guides you thought the steps to complete a complex task
4 0
4 years ago
Submitting Unit 11 Assignment – Step 1 Python CS Fundamentals<br> Need the code to this.
oksano4ka [1.4K]

The Step 1 Python CS Fundamentals  coding work is given in the document attached below.

<h3 /><h3>What are the basic fundamentals of Python?</h3>

The basic steps or lessons in Python is made up of:

  • Kinds of Data types ( such as int, float, strings)
  • The kinds of Compound data structures ( such as lists, tuples, and dictionaries), etc.

Note that by knowing the Step 1  of the Python CS Fundamentals  coding work, one can know what to do next. See the document attached for more information.

Learn more about Coding from

brainly.com/question/16397886

#SPJ1

Download docx
8 0
2 years ago
Which is a credit card balance A. The amount of interest you must pay the credit card company B. The required minimum payment to
yKpoI14uk [10]
The best answer among the following choices would be the fourth option D).
7 0
3 years ago
Is this photo considered rim photography?
steposvetlana [31]

wheres the picture??

8 0
3 years ago
Explain two consequences that would occur, if the "Device Manager and the "File Managerstopped communicating with each other?
sladkih [1.3K]

Answer:

So, you won't be able to install driver via a file because device manager can't find it. Just reinstall windows if that happens lol.

4 0
3 years ago
Other questions:
  • Data ____________ refers to any technique that recodes the data in a file so that it contains fewer bits.​
    10·1 answer
  • A(n) _____ allows a user to choose specific files to back up, regardless of whether or not the files have been changed.
    9·1 answer
  • Why is operating system pivotal in teaching and learning
    11·1 answer
  • Does Marietta college have open admission
    12·1 answer
  • Which of the following are parts of the Physical Layer?
    9·1 answer
  • Which of these parts of a computer produces an observable result?
    11·2 answers
  • An individual involved with the aspect of a project will be concerned with budgets and the costs associated with running a busin
    10·2 answers
  • How can you have internet without subscribing to cable?
    13·1 answer
  • The ____ line for any e-mail messages you write should clearly state the intention of the e-mail..
    15·1 answer
  • Given the tables PRODUCT (ProductID. Description. Cost) SUPPLIER (Supplier D. ContactName, Phone Number) as shown in the figure
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!