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
Barbara purchases only two goods, salads, and notepads. Both are normal goods for Barbara. Suppose the price of salad decreases.
damaskus [11]

Like Haley up here did^^^^^^^^

Answer:

B

Explanation:

8 0
3 years ago
After all of the account balances have been extended to the Income Statement columns of the work sheet, the totals of the Debit
vampirchik [111]
12.393 is the answer in decimal?
5 0
2 years ago
Learning is pervasive in our lives, but there are two different theories on how people learn the ________ theories and the _____
Nookie1986 [14]

Learning is pervasive in our lives, but there are two different theories on how people learn the behavioral theories and the cognitive theories.

Option C is correct

Explanation:

The behavioral theory attempts to explain the actions of the person by examining the antecedents and implications of previous experience in the community and the existing relationships he or she had established.

A behavioral example is when teachers recompense their classes or certain students for good behavior at the end of the week with special benefits. Penalties are used to use the same principle. If the student is wrong, the professor may take some privileges away.

Cognitive theory is a theoretical approach that aims to clarify your actions by understanding the patterns of thinking.

For example, a psychiatrist uses cognitive science techniques as she shows you how to recognize and change ill-suited patterns of thought.

4 0
3 years ago
Which of the following statements is TRUE? Economists normally assume that the goal of the firm is to: I. sell as much of their
aivan3 [116]

Answer:

III. maximize profit.

Explanation:

Profit maximisation is assumed to be the most important goal of most firms. Profit maximization means selling a product at the point where total revenue is at its greatest above total cost.

Profit is maximised where marginal cost equals marginal revenue.

I hope my answer helps you

4 0
3 years ago
Read 2 more answers
Turney Company produces and sells automobile batteries, the heavy-duty HD-240. The 2017 sales forecast is as follows. Quarter HD
Anna11 [10]

           Answer:

Q1 Production 5,980 batteries

Q2 Production 7,618 batteries

Q3 Production 9,068 batteries

Q4 Production 8,714 batteries

Total production  for the year is 31,380

Explanation:

                               Turney Company 2017 Quarterly Production Budgets

                               Q1 2017  Q2 2017     Q3 2017   Q4 2017      Q1 2018

Sales                            5,200        7,150          8,320      10,190       6,500*

Opening inventory     (2,080)      (2,860)        (3328 )     (4076)       (2600)

Closing inventory        2,860       3328            4076         2600              -

Production required   5,980       7,618              9,068        8,714

Sales in Q1 2018=Q1 2017*(1+25%)

Q1 2017 Sales is 5,200

sales in Q1 2018=5,200*(1+25%)

                         =5,200*(1+0.25)

                        =5,200*1.25

                        =$6500*

Sample calculation of closing inventory=40%*next quarter's sales

Q1 2017 closing inventory =7150*40%=2860                

Q 2 2017 closing inventory =8320*40%=3328

Q 3 2017 closing inventory =10190*40%=4076

Q 4 2017 closing inventory =6,500*40%=2600

Total production for the year =5980+7618+9068+8714

                                                 =31,380

             

5 0
3 years ago
Other questions:
  • James is looking for a new suit for a job interview. he is shopping at smith &amp; jones, a well-regarded menswear store. while
    6·1 answer
  • Tool Makers, Inc. make garden rakes extremely well and of the best quality in the industry. Their rakes are difficult to copy, a
    11·1 answer
  • As a finance major student of the UWI OC, you have just landed a lucrative job as a Financial
    14·1 answer
  • Price is the _____________ a consumer is willing to make to acquire a specific product or service.
    9·1 answer
  • PLEASE HELP!
    7·2 answers
  • Sources of consumer information might include ____.
    9·1 answer
  • 1. What is the author trying to say in comparing Becky's world with Desta's world?<br><br> Help me
    13·1 answer
  • What is the yearly salary or hourly wage of a librarian?​
    6·2 answers
  • When you create an appointment schedule for the doctor, based on her preferences, you should _____. A. avoid scheduling appointm
    8·1 answer
  • Craigmont company's direct materials costs are $4,900,000, its direct labor costs total $8,710,000, and its factory overhead cos
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!