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
Which sequence describes the long-run adjustment process in a competitive market when firms are experiencing short-run economic
dedylja [7]

Answer:

b. some firms exit, industry supply decreases, market price rises.

Explanation:

A perfect competitive industry is characterised by many buyers and sellers of homogenous goods and services. There are no barriers to entry or exit of firms.

If firms are making economic loss is the short run, in the long run, firms leave the industry. This leads to a fall in supply and prices rise as a result. In the long run, firms in a competitive industry earn zero economic profit.

I hope my answer helps you

7 0
3 years ago
What is the Best loan option for your<br> lemonade Stand? Why?
Arte-miy333 [17]

Answer:

Short term loan

Explanation:

Lemonade stand can be regarded as a small business, Hence, the loan that suit the business is " Short term loan".

Short term loan can be regarded as loan that can be obtained to give support to ones personal as well as business capital. It is designed for the needs of small business capital with less interest compare to long term loan. The period of payment is usually within a year. It is of low risk and good profit.

4 0
2 years ago
The RIASEC model is one way to classify people by their personality type. The model suggests that employees will have more caree
miss Akunina [59]

Answer:

True

Explanation:

The SDS ( RIASEC MODEL) is a direct product of a theory of personality types and environmental models developed by John Holland.

It proves that you can use your three-letter Summary Code to locate occupations (or fields of study, or leisure activities) that correspond best with your personality and thus are most likely to satisfy you.

3 0
3 years ago
Suppose that the market for haircuts in a community is perfectly competitive and that the market is initially in long-run equili
zloy xaker [14]

Answer:

C) earning an economic profit.

Explanation:

Since the market is in long run equilibrium, the demand = the supply of haircuts, and an increase in the quantity demanded will increase the equilibrium price in the short run, generating economic profits at least until more suppliers enter the market and long run equilibrium is established again. Economic profit doesn't exist when the market is at long run equilibrium.

*Economic profit = accounting profit - implicit costs. So economic profit being $0 in the long run doesn't mean the businesses are not making an accounting profit.

5 0
2 years ago
Our company is going to export bamboo products to the United States. The bill of lading shows the name is BAMBOO STAKES which mu
Alecsey [184]

Answer:

For the wooden handicrafts products, it is regulated by the animal and plant health inspection service (APHIS) in the United ...

8 0
3 years ago
Other questions:
  • Suppose the herfindahl indexes for industries a, b, and c are 7,200, 5,000, and 1,500, respectively. these data imply multiple c
    15·1 answer
  • Ideally, any group you join for business promotion should have at least how many members?
    13·2 answers
  • The Yum and Yee food truck near the business school serves customers during lunch hour by taking orders and making fresh batches
    8·1 answer
  • Which level(s) of government both receive and distribute intergovernmental revenues?
    8·2 answers
  • N the sentence We listened carefully to the CEO's remarks, the verb listened is _
    14·1 answer
  • Regal Clothing is a manufacturer of designer suits. For June 2017​, each suit is budgeted to take 3 ​labor-hours. The budgeted n
    11·1 answer
  • You purchased 100 shares of stock for $78 per share. You sold the stock four years later for $92 per share. What is your gain af
    7·1 answer
  • Select the examples of Energy workplaces. mines, power plants, refineries, schools, trains, warehouses, stores, offices.
    9·2 answers
  • Why should a society be careful in using its natural resources
    9·1 answer
  • red line railroad inc. has three regional divisions organized as profit centers. the chief executive officer (ceo) evaluates div
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!