Computers and Technology
Computers and Technology, 14.04.2021 14:30, itzdulce

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​

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, ayoismeisalex
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
image
Computers and Technology, 22.06.2019 11:40, malibu777
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
image
Computers and Technology, 22.06.2019 19:30, mitalichavez1
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
image
Computers and Technology, 23.06.2019 06:00, jack487
How can a user delete a drawing object
Answers: 1
Do you know the correct answer?
Write a program that calculates the hotel tax rate. It prompts the user to enter the cost of the roo...

Questions in other subjects:

Konu
Mathematics, 05.02.2021 19:10