subject
Chemistry, 29.09.2021 14:00 zaylencollins55

Your family had decided to go out to dinner tonight and needs your help calculating the final bill. Your program should accept the prices for 5 meals (prices are decimal numbers). It should also ask for the tax rate (entered as a decimal value). It should print out your total before tax, the amount of tax and the final bill including tax.

Once you have all of the values input, calculate the total bill including tax. Tax amounts can have more than 2 decimal places so you need to round your decimal value to the hundredths place and print only 2 decimal values.

Example:

How much was the first meal? 12.50
How much was the second meal? 11.25
How much was the third meal? 10.90
How much was the fourth meal? 7.95
How much was the fifth meal? 13.85
What is your tax rate? 0.0825
Your bill before tax is $56.45
You owe $4.66 in tax
Your bill including tax is $61.11

ansver
Answers: 2

Another question on Chemistry

question
Chemistry, 21.06.2019 16:30
What is a scientific theory? a. a scientist's guess about how something works b. the results of an experiment obtained using the scientific method c. a proven fact that will never change d. an idea that is backed by data from many sources
Answers: 2
question
Chemistry, 23.06.2019 01:30
Ariver current has a velocity of 5km/h relative to the shore, and a boat moves in the same direction as the current at 5 km/h relative to the river. how can the velocity of the boat relative to the shore be calculated?
Answers: 1
question
Chemistry, 23.06.2019 04:31
How does a sample of helium at 15 degree celsius compare to a sample of helium at 215 k? a) the helium at 15 degrees celsius has a higher average kinetic energy that the sample at 215 k. b) the helium at 15 degrees celsius has lower nuclear energy that the sample at 215 k. c) the helium at 15 degrees celsius has slower- moving atoms that the sample at 215 k. d) the helium at 15 degrees celsius has smaller atoms than the sample at 215 k.
Answers: 1
question
Chemistry, 23.06.2019 09:20
La reaccion entre monoxido de nitrogeno (no) y oxigeno para formardioxido de nitrogeno (no2) es un paso determinante para la formacion del smog, la reaccion es la siguiente: 2no + o2 = 2no2 cual sera el numero de moles de no2 que se formaran por la reaccion completa de 8 moles de oxigeno con suficiente monoxido?
Answers: 1
You know the right answer?
Your family had decided to go out to dinner tonight and needs your help calculating the final bill....
Questions
question
Mathematics, 28.10.2020 23:50
Questions on the website: 13722367