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 DID dred scott do (will give brainly to write answer)
jok3333 [9.3K]

Answer:

id k

Explanation:

8 0
2 years ago
Read 2 more answers
Since the end of World War II, manufacturing firms in the United States and in Europe have been moving farther and farther outsi
hodyreva [135]

Answer:

Letter A is correct. <u>Skyscrapers.</u>

Explanation:

In this matter the ideal alternative is Skyscraper.  This structure is more used for the service sector as the examples mentioned in the question: finance and insurance companies.

This strategy of locating service companies close to central areas is justified by the high concentration of the target audience of the companies, in addition to the benefit of the skyscrapers being made on a small part of the land and can accommodate many people.

5 0
3 years ago
What are welfare payments or consumer subsidies in south africa
Tamiku [17]
Welfare payments are usually made in cash equivalents that can be used be the recipient for a variety of goods and services. Consumer subsidies are used for one thing, such as food.
5 0
3 years ago
Which of the following statements is true of needs assessment? Group of answer choices
Nuetrik [128]

Answer:

C. The role of the needs assessment is to determine if training is the appropriate solution

Explanation:

3 0
3 years ago
Reggie is a self-employed taxpayer who turns 59 years old at the end of the year (2019). In 2019, his net Schedule C income was
yuradex [85]

Answer:

Consider the following calculations and explanation

Explanation:

.a. Reggie sets up a SEP IRA:

He can contribute maximum amount of 25% of his net income, upper limit being $55,000 in 2018 and $54,000 in 2017.

Since his net income is $300,000: 25% of his net income (300000*0.25)=$75,000

Upper limit in 2017=$54,000

In 2017 he can contribute maximum $54,000

In 2018 he can contribute maximum$55,000

.b. . Reggie sets up an individual 401(K):

Annual salary deferral of $18,500 im 2018 and $18,000 in 2017. Since he is above 50 , there will be additional amount of $ 6,000 for him. So he can have annual salary deferral of $24.500 in 2018 and $24,000 in 2017

Contribute additional maximum $55,000 in 2018 and $54,000 in 2017

7 0
3 years ago
Other questions:
  • Billy Mitchell is the head cashier for a clothing store that specializes in men’s silk suits. After losing big at the local dog
    6·1 answer
  • The ninth worker adds 25 units to total production. The tenth worker adds 22 units to total production. The company has:________
    6·1 answer
  • Storm, Inc. purchased the following available-for-sale securities during 2016, its first year of operations:
    11·1 answer
  • Roca, Inc., manufactures and sells two products: Product M6 and Product X7. The company has an activity-based costing system wit
    5·1 answer
  • one reason a company might prefer FDI over exporting. presence or threat of trade barriers costs of acquiring a foreign enterpri
    5·1 answer
  • Ramon incorporated his sole proprietorship by transferring inventory, a building, and land to the corporation in return for 100
    11·1 answer
  • A grade if A is worth ___ grade points
    7·1 answer
  • To keep your business plan up-to-date, it should be revised every
    11·1 answer
  • Discuss the likely drawback to a start up business of setting up and running as a franchise operation
    12·1 answer
  • You have just been elected to public office and you have been informed that the government does not have money to pay all of its
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!