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, 21.06.2019 22:50
Explain why it is reasonable to assume that receiving 3 duplicate acks in tcp is an indication that the network is not currently congested.
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Formatting rows and columns is similar to cell formatting. in an openoffice calc spreadsheet, you can format data entered into rows and columns with the of the rows and columns options. you can insert rows and columns into, or delete rows and columns from, a spreadsheet. use the insert or delete rows and columns option on the insert tab. alternatively, select the row or column where you want new rows or columns to appear, right-click, and select insert only row or only column options. you can hide or show rows and columns in a spreadsheet. use the hide or show option on the format tab. for example, to hide a row, first select the row, then choose the insert tab, then select the row option, and then select hide. alternatively, you can select the row or columns, right-click, and select the hide or show option. you can adjust the height of rows and width of columns. select row and then select the height option on the format tab. similarly, select column, then select the width option on the format tab. alternatively, you can hold the mouse on the row and column divider, and drag the double arrow to the position. you can also use the autofit option on the table tab to resize rows and columns.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What type of forensic evidence was recovered during the bomb set off at the new mexico facility on the video that was similar to the evidence obtained at the boston bombings and how did the evidence allow the researchers to connect other pieces of evidence to the same bomb?
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
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
Questions on the website: 13722361