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 21:00
It is not a good idea in a cover letter to mention another person whom the employer knows.
Answers: 1
question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
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
History, 20.10.2020 02:01
question
Business, 20.10.2020 02:01
question
Mathematics, 20.10.2020 02:01
Questions on the website: 13722367