1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nikklg [1K]
3 years ago
12

The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hot

el offers a special discount as follows: If the number of rooms booked is at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.
Business
1 answer:
Serggg [28]3 years ago
3 0

Answer:

//Room rent

#include<iostream>

using namespace std;

int main()

{

double rent, sales, dis = 0;

int num, days;

double room_rent, total_rent,sales_tax;

cout<<"Enter the rent of one room: ";

cin>>rent;

cout<<"Enter the number of rooms to be booked: ";

cin>>num;

cout<<"Enter the number of days for which rooms need to be booked: ";

cin>>days;

cout<<"Enter the sales tax (in %): ";

cin>>sales;

if(num>=30)

dis = 0.3;

else if(num>=20)

dis = 0.2;

else if(num>=10)

dis = 0.1;

if(days>=3)

dis += 0.05;

total_rent = rent*num*days*(1-dis);

room_rent = total_rent/num;

cout<<"The cost of renting one room is "<<room_rent<<endl;

cout<<"The discount given is "<<100*dis<< "%.\n";

cout<<"The number of rooms booked is "<<num<<endl;

cout<<"The number of days rooms booked is "<<days<<endl;

cout<<"Total cost of the rooms = "<<total_rent<<endl;

sales_tax = (sales*total_rent)/100;

cout<<"Sales tax = "<<sales_tax<<endl;

cout<<"Total bill = "<<total_rent + sales_tax<<endl;

return 0;

}//end of main function

Explanation:

You might be interested in
Regina finds a new car costing $25,000 and a used car costing $17,000. Which car will have higher insurance premiums and why?
GaryK [48]
The used car will have higher insurance premiums because there is a higher chance that it will malfunction and that they will have to pay for your expenses. A new car is cheaper when it comes to premiums because it is expected to last and the insurance companies are safer in this regard.
3 0
3 years ago
Explain the differences between civil and criminal law.
Furkat [3]
Criminal laws<span> regulate </span>crimes<span>, or wrongs committed against the government. </span>Civil laws <span>regulate disputes </span>between<span> private parties.
I found this in the internet so I´m not really sure.</span>
7 0
3 years ago
Laura is an investor and a limited partner in a limited partnership. Two years after she becomes a limited partner, Laura thinks
erik [133]

Answer

Option B. Laura is personally liable as the bank, in good faith, thought she is a general partner

Explanation:

Limited Partnership (LP)

This is Business entity that exists in line with state statutes that gives limited liability to some of its members who called limited partners.

RULPA

This is simply called Revised Uniform Limited Partnership Act. It is the model for Limited Partnership legislation in most states.

Limited Partner

This is a part or member of a limited partnership.it is that individual who is not involved in controlling the business and whose liability is limited to amount invested in the business.

General Partner

It is simply a member in a limited (or general) partnership who controls the business and has unlimited personal liability.

In the above scenario, Laura will be taken as a general partner and will be held personally accountable or liable for the loan, and also along with the general partners of the limited partnership.The rule of RULPA gives the right for a limited partner to be involved in the management of the partnership’s affairs and not losing the limited liability if the limited partner has been formally employed by the partnership to be an executive of the partnership.

8 0
3 years ago
Using Taylor's rule, when the equilibrium real federal funds rate is 2 percent, there is no output gap, the actual inflation rat
SCORPION-xisa [38]

Answer:

B) 1%

Explanation:

Taylor's rule formula is as follow:

Target rate = Neutral rate + 0.5 x (Expected GDP growth rate - Long-term GDP growth rate) + 0.5 x (Expected Inflation rate - Target inflation rate)

--> Target rate = 2% + 0.5 x (0) + 0.5 x (0 - 2%)

  --> Target rate = 2% - 1% = 1%

Nominal federal funds rate should be 1%

7 0
3 years ago
If when the price of product e decreases by 2%, this causes its quantity demanded to increase by 14% and the quantity demanded f
hodyreva [135]
Cross elasticity of demand measures the responsiveness in the quantity demand of one good when a change in price takes place in another commodity or good. It is calculated by dividing the percentage change in the quantity demanded of one good by the percentage change in price of other good.
Therefore, in this case, cross elasticity of demand will be;
   17%/-2% = - 8.5   (-2% because its a decrease)
Thus , the elasticity will be -8.5
3 0
3 years ago
Other questions:
  • Q-mart wants to know what safety stock should be maintained for its jumbo flyer if j. flyer's daily demand is normally distribut
    9·1 answer
  • Which of the following U.S. organizations conducts an ongoing National Compensation Survey measuring wages, salaries, and benefi
    5·1 answer
  • What is revenue on an income statement? Select one:
    13·1 answer
  • The Coalition of Independent Music Stores, a group of 44 prominent independent record stores in 25 states, operates as a way for
    15·1 answer
  • The dry cleaning business can be characterized as a perfectly competitive industry because the costs of entry are low and there
    9·1 answer
  • What is the function of product and service management​
    11·1 answer
  • Based on the information below, illustrate the effects on the accounts and financial statements of the Seller and the Buyer. Bot
    14·1 answer
  • Angela's monthly disposable income is ​$2928. She has monthly expenses of ​$ 2664 ​(including recreational expenses of ​$379​) a
    6·1 answer
  • Who are the top three trading partners with the US?
    6·2 answers
  • you are the coordinator of a nonprofit that distributes donated items to three local homeless shelters. what is the most efficie
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!