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
What does homeowner's insurance pay for in case of damage to your house and its contents? apex?
patriot [66]
<span>Homeowner's insurance will pay for your home that is damaged, plus the belongings that are inside of the home. Most of the policies include the repair of your home if they are damaged in a fire. The insurer can even pay for you to have a place to stay, such as a hotel.</span>
5 0
3 years ago
The distribution of the amount of money in savings accounts for florida residents has an average of 2,200 dollars and a standard
slava [35]
The sampling distribution of the sample mean amount of money in a savings account is :<span>
approximately Normal, with a mean of 2200 and a standard error of 900 because </span><span> they don't give you enough information in the problem. The problem states the Sx of 900 dollars and the mean to be 2200 dollars. They don't give you the random sample number.</span>
6 0
3 years ago
Required:
Kisachek [45]

Answer:

1- Cash (Dr.) $ 47,000

Computer (Dr.) $ 40,000

Common Stock (Cr.) $ 87,000

2- Rent Expense (Dr.) $2,200

Cash (Cr.) $2,200

3- Office Supplies (Dr.) $2,000

Cash (Cr.) $2,000

10- Prepaid Insurance (Dr.) $2,200

Cash (Cr.) $2,200

14- Salaries Payable (Dr.) $14,000

Cash (Cr.) $14,000

24- Cash (Dr.) $14,000

Commission from Airline (Cr.) $14,000

28- Salaries Payable (Dr.) $1,300

Cash (Cr.) $1,300

29- Computer Repair Expense (Dr.) $300

Cash (Cr.) $300

30- Telephone Bill Expense (Dr.) $1,100

Cash (Cr.) $1,100

30- Dividend Payable (Dr.) $2,000

Cash (Cr.) $2,000

Explanation:

The company has incurred business transactions which are recorded in the system as journal entries. These entries are then posted to create ledgers which shows the summarize form of all the transactions. These ledger then create trial balance which displays complete account balances of all the transactions separately.

6 0
3 years ago
A firm in a purely competitive industry has a typical cost structure. The normal rate of profit in the economy is 5 percent. Thi
Nadya [2.5K]

Answer: The answers are given below

Explanation:

a. What is its percentage rate of return?

From the question, we are told that the firm is earning $5.50 on every $50 invested by its founders. The percentage of return will now be:

= $5.50/$50 × 100%

= 0.11 × 100%

= 11%

b. Is the firm earning an economic profit? If so, how large?

The economic profit will be the difference that exists between the percentage of return which is 11% and the normal rate of profit which is 5%. This will be:

= 11% - 5%

= 6%

The firm is earning economic profit of 6%.

c. Will this industry see entry or exit?

There will be entry into the industry. This is because the percentage of return which is 11% is greater than the normal rate of profit which is 5%.

d. What will be the rate of return earned by firms in this industry once the industry reaches long-run equilibrium?

The rate of return earned by firms in this industry once the industry reaches long-run equilibrium will be 5% which is the normal rate of profit in the economy.

4 0
3 years ago
In a recent year Bonita Industries had net income of $130000, interest expense of $50000, and income tax expense of $21000. What
denis-greek [22]

Answer:

b. 4.02

Explanation:

Time interest earned is actually tells us how many times it's interest is the company earning so that formula for times interest earned is

Earnings before income and tax/Interest expense.

So we have to add interest expense and tax expense back to net income.

130,000+50,000+21,000=201,000

201,000/50,000=4.02

4 0
3 years ago
Other questions:
  • A surge in new home sales and a drop in weekly unemployment claims suggest that the economy might not be as weak as some analyst
    11·1 answer
  • Which of the following variables is/are not required input(s) for parsimonious multiyear forecasting? Select one:
    10·1 answer
  • When rebuilding a steering system, a can of bolts and nuts was somehow lost. Technician A says to simply go to the hardware stor
    12·1 answer
  • Regina has made the same sales presentation twice a day for almost a month. At first, the presentation seemed to flow nicely but
    15·1 answer
  • Mandy Corporation sells a single product. Budgeted sales for the year are anticipated to be 640,000 units, estimated beginnint i
    13·1 answer
  • Software that manages "back office" functions such as billing, production, inventory management, and human resources management
    7·1 answer
  • Ramirez Company is completing the information processing cycle at its fiscal year-end on December 31. Following are the correct
    11·1 answer
  • Which is NOT a reason companies integrate horizontally?
    13·1 answer
  • In the market for labor, demand describes
    6·1 answer
  • Setting objectives and identifying methods to achieve those objectives is called.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!