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
An HP PC does not support the HP System Board Configuration tool, and you must use the HP System Board Replacement and System Di
GuDViN [60]

Answer:

Press F2 to see if the System Diagnostics or Hardware Diagnostics UEFI menu displays.

Explanation:

Start the HP BIOS Setup utility and view the Advanced > Diagnostics screen for supported diagnostics.

Boot to Windows and launch HPSA. Search for HP PC Hardware Diagnostics UEFI.

All HP commercial products manufactured after 2009 have HP PC Hardware Diagnostics UEFI installed on the hard drive.

7 0
3 years ago
Some of y'all make me lose braincells with your questions
boyakko [2]

Answer:

ok done we will try

BTW have a nice day enjoy your day Stay blessed stay happy stay strong

5 0
3 years ago
Read 2 more answers
Whose work is responsible for the invention of the air bag? Scientist, Engineers or both?
jenyasd209 [6]

The scientist and the engineers were both responsible for the invention of the airbag.

  • Peter Florhancicn was a scientist and he invented the airbag because of the Dutch people who drowned when they drove into the canals

  • Also, John Hetrick who was an engineer filed for the patent of airbags when he saw that deers were running across the road. He believed that it could cause an accidentthat led to the invention.

In conclusion, both the engineers and the scientists were responsible.

Read related link on:

brainly.com/question/24686827

3 0
3 years ago
Help me if you do then you get 10 points and brainliest
stellarik [79]

The answer is A. The earth was formed 4.54 years ago, and during those first serveral hundred million years, oceans, continents started to form.

A) Precambrian time.

3 0
3 years ago
What is the simplest unit of a compound that maintains all the characteristics of the compound<br> ?
vlada-n [284]
A molecule is the simplest unit of a compound.
3 0
3 years ago
Other questions:
  • For homework, we have to figure out what's in the picture. It's " too close to tell " but I can't figure out what it is. Any ide
    11·1 answer
  • Which type of text may be formatted to print at the bottom of every page?
    6·1 answer
  • A Windows user has been successfully saving documents to the file server all morning. However, the latest attempt resulted in th
    9·2 answers
  • You are running an art museum. There is a long hallway with k paintings on the wall. The locations of the paintings are l1, ...,
    13·1 answer
  • What soft ware can you use to erase all of your data from a hard drive safely
    13·1 answer
  • Write an if-else statement for the following: If user_tickets is less than 5, assign 1 to num_tickets. Else, assign user_tickets
    6·1 answer
  • for java ?(Business: check ISBN-13)ISBN-13 is a new standard for identifying books. It uses 13 digits d1d2d3d4d5d6d7d8d9d10d11d1
    9·1 answer
  • ARGENT !!20 POINTS <br> А ________ translates commands from a computer to draw lines on paper.
    10·2 answers
  • On a Windows system, which Task Manager tab would you use to adjust the priority given to a specific program
    13·1 answer
  • If you want to create a line of code that will not appear in the interpreter, what symbol should begin the line?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!