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]
2 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]2 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
When depreciation is computed for partial periods under a decreasing charge depreciation method, it is necessary to a. charge a
Butoxors [25]

Answer:

The answer is letter B.

Explanation:

Determine depreciation expense for the full year and then prorate the expense between the two periods involved.

5 0
3 years ago
What divergences arise between equilibrium and output and efficient output when(10) a) negative externalities and b) positive ex
Ket [755]

Answer:

Production or consumption activities lead to an external cost for the third party, which causes the social marginal cost to exceed the private marginal cost. Consumers and producers base their decisions on private marginal cost and there would be an overproduction or excessive consumption of the good. The balance output is more than the efficient output.

Taxes must be imposed to correct the divergence between social and private marginal costs.

On the other hand, production or consumption leads to an external benefit for the third party, which means that the marginal social benefit exceeds the private marginal benefit. Consumers and producers base their decision on private marginal benefit and there would be underproduction or low consumption of the good. The balance output is less than the efficient output. The government would have to provide subsidies to producers or consumers to correct these inefficiencies.

8 0
3 years ago
On January 1, 2020, Swifty Corporation established a stock appreciation rights plan for its executives. It entitled them to rece
OleMash [197]

Answer:

$620,000

Explanation:

The amount of compensation expense that Korsak should recognize for the year ended December 31, 2022:

= [($34-$20)*124,000*3/4] - [($31-$20)*124,000*2/4]

= [$14*124,000*3/4] - [$11*124,000*2/4]

= $1,302,000 - $682,000

= $620,000

Note: The answer is not included in the option above

4 0
2 years ago
An appliance repair shop buys and uses about 4,212 fan motors annually. Holding cost is 27 dollars per motor per year, and order
Juli2301 [7.4K]

Answer:

15,251 units

Explanation:

The formula for Economic order quantity is;

EOQ = √2DS/H

Where,

D = Annual demand = 4,212

S = Ordering cost = $177

H = Holding cost = $27/4,212 = $0.00064102564

EOQ = √ 2 × 4,212 × $177 / $0.00064102564

EOQ = √ $1,491,048 / $0.00064102564

EOQ = √232603488.37

EOQ = 15,251 units

4 0
3 years ago
Forey, Inc. competes against many other firms in a highly competitive industry. Over the last decade, several firms have entered
crimeas [40]

Answer:

The market that characterizes the industry in which Forey competes is a market where competition is at its greatest possible level and it is a perfectly competitive market and the reason is because its returns decrease with the entering of new firms, also four-firm concentration ratio and Herfindahl Hirschman index are both quite small, so no one has significant market power to set or even influence the market price. In the short-run Forey Inc’s profit will decrease as more and more new firms enter the market and in the long-run Forey Inc will receive only normal (zero) economic profit.

4 0
3 years ago
Other questions:
  • Which career is best suited for people who have a high school diploma
    15·1 answer
  • If a firm's business activities do not result in profit maximization, whilst alternatives exist, then such activities amount to
    14·1 answer
  • Jack complains that his wife is not sufficiently supportive, which causes him to do poorly at his job. jack's wife responds that
    8·1 answer
  • Many people wear formal attire to a job interview (a suit, a dress, or other such clothing) even if the job does not require suc
    15·1 answer
  • At the end of its first month of operations, JMP Consulting reported net income of $25,000. They also had account balances of: C
    11·1 answer
  • Regression analysis models helped Avon realize that employee benefits and the appointment fee that representatives pay for mater
    11·1 answer
  • Gray Corp. employees work 2 hours on each of the 200 units that they produce and are paid $8 per hour. The standards for Gray Co
    12·1 answer
  • The physical units method of joint cost allocation allocates costs based on a.the estimated selling price of the various finishe
    11·1 answer
  • How does a speaker choose the tone of a speech?
    9·1 answer
  • A shipment that is transported using two or more modes during its journey is said to be?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!