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
make a logo for me with the name voice notes it’s a note book that writes when u speak best one gets brainliest
EleoNora [17]

heyyy!    hru? Im super bored

8 0
3 years ago
Ski trips and ski jackets are complements. the cross elasticity of demand for ski trips with respect to the price of a ski jacke
Mrrafil [7]

If the price of the ski trip has increased then the demand for the ski jacket will likely decrease because of the demand curve in terms of the ski jackets that will be shipping to the leftward as the ski trip were to increase.

6 0
3 years ago
The administration of a large university is interested in learning about the types of wellness programs that would interest its
creativ13 [48]
It is called <span>Stratified Sampling :)</span>
8 0
4 years ago
Which of the following would make it easier to maintain an effective collusive agreement in a cartel?
GalinKa [24]

Answer:

A decrease in the elasticity of demand for the cartel's product.

Explanation:

The cartel is under the control of companies operating in the same area. This is undesirable. It is concluded between businesses and these contracts prevent competition. Such arrangements are also prevented by governments, which aims to promote competition among governments across the country. This type of arrangement creates unity and demonstrates business behavior in activities that prevent other competitors from entering the sector.

Adverse effects on consumers include:

1) Higher prices - cartel members can raise prices, which reduces the demand elasticity of any member.

2)  Lack of Transparency - Members may agree to hide prices or hide information such as hidden charges in credit card transactions.

3) Limited production - Members may agree to limit market production, such as OPEC and oil quotas.

4) Build Market - Cartel members can collectively divide a market into regions or regions and not compete in each other's territory.

4 0
3 years ago
If productivity increases significantly and demand is not very elastic, what is likely to happen?
spayn [35]

Answer:

B. Fewer workers will be needed.

Explanation:

Elastic demand refers to a flexible demand. It is a demand that can increases or decreases due to several factors. If demand is not elastic, it implies it is constant. An increase or decrease in output or price will not affect the quantity demanded.

An increase in productivity means an increase in output per worker. It is the increase in the number of units produced, per hour, per worker. An increase in productivity results in more output in a given period than previously.

If the demand is constant and there is an increase in productivity, only a few workers will be required. The output from the few workers will be high to meet the constant demand.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Fred and george have been in partnership for many years. the partners, who share profits and losses on a 60:40 basis, respective
    15·1 answer
  • ​Let's assume that a carpenter borrowed ​$2 comma 000 to be paid off in a year to finance a machine that would make him work fas
    7·1 answer
  • Your résumé should be one-of-a-kind. True False?
    10·1 answer
  • Of the following mortars, type ____ is the strongest
    7·1 answer
  • Before purchasing a car, John sought advice from his friends and researched auto reviews on the Internet. He also visited car de
    8·1 answer
  • A firm that successfully differentiates its product or lowers its average cost of production creates A. a perfectly inelastic de
    14·1 answer
  • You would like to retire in 30 years. The expected rate of inflation is 2% per year. You currently have a standard of living tha
    14·1 answer
  • My question is what is in decentralization​
    11·1 answer
  • State and explain the importance of marketing in small business ​
    13·1 answer
  • Some employees at a clothing manufacturer investigate pay rates on Salary and learn that the company has been paying them signif
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!