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 question can best help a consumer assess risk when purchasing insurance? How much must be paid to make a claim? What probl
Misha Larkins [42]

Answer: the answer is : What problems are most likely to happen?

Explanation:

5 0
3 years ago
Read 2 more answers
Suppose the civilian non-institutional population equals 250,000; there are 132,500 employed persons and 10,000 unemployed perso
mr Goodwill [35]

Answer:

107,500

Explanation:

The civilian non-institutional population can be divided into two groups;

1)Individuals in the labor force

11) Those not in the labor force

Those in the labor force will include the employed and the unemployed.

In the scenario, those in the labor force will be 132,500 employed persons and 10,000 unemployed persons.

I.e., 132,500 + 10,000 = $42,500

Those not in the labor force will be the population - those in the labor force.

I.e., 250,000-142,500= 107,500

Those not in the labor force will be 107,500

6 0
3 years ago
g Jill has a balance of $866,000 in her retirement savings account. She expects to retire in 8 years. She will not save any addi
lubasha [3.4K]

Answer:

$69,378.96

Explanation:

The first step is to determine the future value of Jill's balance

FV = P (1 + r)^n

FV = Future value  

P = Present value  

R = interest rate  

N = number of years

$866,000(1.09)^8 = $1,725,559.25

the second step is to determine the future value of the balance in Bob's account

$482,000(1.09)^8 = $960,415.19

The difference between Jill and Bob's future value amount is 765,144.06. this has to be the future value of bob's yearly savings

yearly savings = 765,144.06.  / annuity factor

Annuity factor = {[(1+r)^n] - 1} / r

(1.09^8 - 1) / 0.09 = 11.028474

765,144.06.  /  11.028474 = $69,378.96

5 0
3 years ago
C) What are the major jobs of a nurse?​
ivanzaharov [21]

Answer:

1) Conduct physical exams

2) Take a detailed heath care histories

3) Provide counselling and health care to patients

4) Listening to the patients and analysing the physical and emotional needs

6 0
3 years ago
What is the purpose of a free-market system?
Nady [450]

Answer:

<em>D. To allow consumers and producers to make their </em>

<em>own decisions</em>

Explanation:

A <em>free-market system</em> is the market form determined by free market forces of demand and supply.

No government intervention takes place in this form of market as in a centrally planned economic system. This non- intervention of the government prevents <em>economic distortions</em> in the system, which is good for the market.

In a <em>free market system</em> the forces of demand and supply, decide the price of the goods and thereby the output adjustments. The consumers are free to decide the demand and producers are free to decide the product the supply of goods.

Hence, it can be said that <em>the purpose of a free-market system is to allow consumers and producers to make their own decisions.</em>

6 0
3 years ago
Read 2 more answers
Other questions:
  • Pull dates indicate the last day a product should be sold.From the items listed, which one is most likely to have a pull date?
    12·2 answers
  • Thyimach, a machinery manufacturing company, has been purchasing iron shafts from metaljun, a supplier of iron and steel materia
    9·1 answer
  • All of the following bacteria can cause foodborne illness except ?
    6·1 answer
  • "Logistics" has essentially the same meaning as which of the following terms?
    5·2 answers
  • _____ refers to searching and capturing new ideas that lead to business opportunities. Opportunity charging Entrepreneurial aler
    11·1 answer
  • Secret Prizes Inc. is planning to sell 200 buckets and produce 190 buckets during March. Each bucket requires 500 grams of plast
    6·1 answer
  • A government's comprehensive annual financial report (CAFR) is divided into three main sections. The statements, schedules, tabl
    5·1 answer
  • Despite ongoing debates about the appropriateness of macroeconomic policies, many macroeconomists have reached a modern consensu
    13·1 answer
  • 1. At what level does the supervisor fit in the organizational pyramid? Describe a major trend that is changing the role of the
    14·1 answer
  • Manager Mike offered incentives, allowed his employees to voice their opinions, and communicated positive messages. How do these
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!