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
Rice is a cheap staple food eaten multiple times of day by many people all over the world. In Trufflelandia, residents also eat
enot [183]

Answer:

Rice is so cheap and truffles are so expansive because D. People eat so much rice that an additional serving of rice has little marginal value, but the marginal value of another serving of truffles is very high.

Explanation:

When it comes to tasty or nutritious foods, there should not be any reason to be more expensive than others food stuffs. However, they often cost a little more. Regarding rice and its easy way of cooking, it is not a strong argument to talk about the price. So the right answer D, due to the fact that is true that eating a higher rate of rice won't have such a great marginal value as it will with truffles. It has to do a lot with higher demand of rice.

5 0
3 years ago
A market that has many sellers, has standardized products and is easy to enter and exit is an example of which type of market st
Gekata [30.6K]
Uhh I need more info
4 0
3 years ago
Read 2 more answers
Cully Furniture buys two products for resale: king beds (K) and queen beds (Q). Each king bed costs $500 and requires 100 cubic
lana66690 [7]

Answer:

1) 500K + 250Q ≤ 80,000

  100K+80Q≤ 30,000

K≥0

Q≥0

P= 400K + 200Q

2) zero king beds and 320 queen beds

or zero queen beds and 160 king beds

3) surplus variable

surplus variable is storage space

values of surplus variable is 14,000 cubic feet if zero queen beds and 160 king beds

value of surplus variable is 4,400 cubic feet if zero king beds and 320 queen beds.

surplus is the extra amount available after all resources have been utilized to theri maximum.

4) none of the resources will be completely used. There will be surplus of both

Explanation:

1) Implicit variables: K≥0 ;   Q ≥ 0

Explicit variables:

500K + 250Q ≤ 80,000-------------------------- from investment constraint

  100K+80Q≤ 30,000 ---------------------- from storage space constraint

LP:  P= 400K + 200Q

2) See the attachment for profit maximization graph

3) From graph in the attachment, it can be inferred that storage space is the surplus variable since graph of that equation lies completely outside of optimal area.

Also,

if K=160 and Q=0, the inequality of investment gives

500(160) + 250(0)= 80,000

if K=0 and Q=320, the inequality of investment gives

500(0)+ 250(320) =80,000

if K=0 and Q = 320, the inequality of space gives

100(0) + 80(320)= 25,600

surplus= 30,000- 25,600= 4,400

if K=160 and Q=0, the inequality of space gives

100(160) +250(0)= 16000

surplus= 30000-16000= 14000

4) K=0 and Q=300

investment inequality gives

500(0) + 250(300) ≤ 80,000

75,000≤ 80,000

space inequality gives

100(0) + 80(300) ≤ 30,000

24,000≤ 30,000

Both space and investment are in surplus

6 0
3 years ago
Economists generally agree that increases in the minimum wage increase employment.a. TRUEb. FALSE
andreyandreev [35.5K]

Answer:

b. FALSE

Explanation:

Economists do not have a unanimous consensus that an increase in the minimum wage will cause greater employment opportunities. In fact, the opposite is the case because research shows that when the minimum wage is increased, there is less demand for low-skill workers. Given that these firms would be paying more, they would want to only employ those that have a high-skill set and thus save their organization of some funds. Since businesses are not charity organizations, they must make decisions that will benefit them.

5 0
3 years ago
On April 1, 2014, Headland Inc. entered into a cost-plus-fixed-fee contract to construct an electric generator for Altom Corpora
MA_775_DIABLO [31]

Answer:

Gross profit to be recognized = $196,140

Explanation:

                         Headland Inc.

Gross profit to be recognized by Headland at December 31, 2014 ending

Estimated contract cost                                                    $1,962,000

Fixed fee                                                                             $467,000

Total  $1,962,000+ $467,000)                                         $2,429,000

Total estimated cost                                                           $1,962,000

Gross profit ($2,429,000- $1,962,000)                            $467,000

percentage of completion:( $829,900/1,962,000)              42%

Gross profit to be recognized: $467,000*42%               $196,140

4 0
3 years ago
Other questions:
  • All of the following are characteristics of SMART goals except
    7·1 answer
  • Blanton Company wishes to allocate rent expense of $24,000 to its three operating departments, A, B, and C. Assuming the three d
    11·1 answer
  • The climate in which jonah lives is mild all year long except during the hotter summer months. for 3 months out of the year, jon
    12·2 answers
  • Describe the three different times cash can be received from a customer related to earning revenue.
    14·1 answer
  • Norma Smith is the controller of Bramble Corporation and is responsible for the preparation of the year-end financial statements
    11·1 answer
  • For each of the following, state whether you expect the distribution to be symmetric, right skewed, or left skewed. Also specify
    5·1 answer
  • Sanders Inc. is a small brick manufacturer that uses the direct write-off method to account for uncollectible accounts. At the e
    13·1 answer
  • Assuming a 360-day year, when a $49,200, 90-day, 6% interest-bearing note payable matures, the total payment will be ______ .
    12·1 answer
  • Will name brainlest
    9·2 answers
  • The George Company has a policy of maintaining an end-of-month cash balance of at least $37,000. In months where a shortfall is
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!