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 11:30
What does a cascading style sheet resolve a conflict over rules for an element? a. the rule affecting the most content wins b. the rule affecting the most content loses c. the rule with the most specific selector loses d. the rule with the most specific selector wins
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Which of the statements below describe the guidelines for the use of text in presentation programs? a. do not use numbered lists. b. fonts should be appropriate for your audience. c. limit the number of fonts you use to three or four. d. only use bulleted lists for sales promotions. e. select font sizes that are appropriate for your delivery method. f. use font colors that work well with your background. select all that apply
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
question
Mathematics, 17.08.2020 14:01
question
Health, 17.08.2020 14:01
question
Mathematics, 17.08.2020 14:01
question
Mathematics, 17.08.2020 14:01
question
Business, 17.08.2020 14:01
question
Mathematics, 17.08.2020 14:01
Questions on the website: 13722363