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, 22.06.2019 12:10
Building glycogen from glucose molecules is an example of
Answers: 3
question
Chemistry, 22.06.2019 19:00
What information does a complete ionic equation give that the balanced equation doesn’t show?
Answers: 1
question
Chemistry, 23.06.2019 08:10
An experiment is conducted to see if cats preferred skim milk or 2% milk. a cup of skim milkwas put out for 5 kittens and then measured how much the kittens drank over the course of aday. following a cup of 2% milk was purout for the skittens and then masured how much thekittens drank over the course of a day. the same kittens were used and the milk was served atthe same temperature. it was discovered that the cats liked the 2% milk more than the skimmilk. what is the dependent variable in this experiment?
Answers: 1
question
Chemistry, 23.06.2019 13:30
The activation energy for a(n) is quite large and usually takes extra energy from the environment, it is normally not a natural spontaneous process. combustion reaction endothermic reaction exothermic reaction catalyzed reaction
Answers: 3
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, 18.09.2020 04:01
question
Mathematics, 18.09.2020 05:01
question
History, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Health, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
English, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
question
Mathematics, 18.09.2020 05:01
Questions on the website: 13722362