subject

Write a program that calculates the hotel tax rate. It prompts the user to enter the cost of the room before taxes and the hotel tax per night and the state tax per night. The program will then: Calculate the “total tax per night”:

total tax per night=hotel tax per night+state tax per night

Divide the “total tax per night” by the “cost of the room before taxes”

Then Multiply the obtained answer by 100. Then the obtained result is called “hotel tax rate”

The program will then display all the information needed as shown in the sample run below (print only two numbers after the decimal point, example :16.95)

Sample Run 1:

Enter the cost of the room before taxes (in $): 115.2

Enter the Hotel tax per night (in $): 14.8

Enter the State tax per night (in $): 3.4

The hotel tax rate is 15.79 $:

Cost of the room after taxes is 133.4$

The total Tax per night is 18.2$

Sample Run 2:

Enter the cost of the room before taxes (in $): 100

Enter the Hotel tax per night (in $): 5

Enter the State tax per night (in $): 5

The hotel tax rate is 10.0 $:

Cost of the room after taxes is 110.0$

The total Tax per night is 10.0$

please i dont have many time any help​

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
Write a program that calculates the hotel tax rate. It prompts the user to enter the cost of the roo...
Questions
question
Biology, 23.05.2020 06:57
question
World Languages, 23.05.2020 06:57
question
Mathematics, 23.05.2020 06:57
question
Mathematics, 23.05.2020 06:58