subject
Chemistry, 29.09.2021 07:30 ericadawn2852

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: 1

Another question on Chemistry

question
Chemistry, 22.06.2019 06:00
What happens when light is scattered?
Answers: 3
question
Chemistry, 22.06.2019 13:00
What must occur for air masses to form fronts
Answers: 3
question
Chemistry, 22.06.2019 18:40
What is the binding energy of a nucleus that has a mass defect of 5.81*10-^29 kg a 5.23*10-^12 j b 3.15* 10^12 j c 1.57*10-3 j d 9.44*10^20 j
Answers: 1
question
Chemistry, 22.06.2019 19:30
If 16.00g of hydrogen gas reacts with 126.73g of oxygen, how many grams of water are yielded? (both reactants are completely consumed in the reaction.)
Answers: 2
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
Social Studies, 27.08.2021 16:50
question
Computers and Technology, 27.08.2021 16:50
question
Computers and Technology, 27.08.2021 16:50
question
Mathematics, 27.08.2021 16:50
question
Mathematics, 27.08.2021 16:50
Questions on the website: 13722367