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 is the MAIN reason why some stores want to close on Thanksgiving?
Contact [7]

\mathrm {Hey, there!}

Your answer is:

It is too difficult to compete with major retailers like Target and Best Buy.

When a lot of people buy things from a store, there is a lot of turbulence in many stores, espeically in big retailers. The answer will be It is too difficult to compete with major retailers like Target and Best Buy.

Best of Luck!

8 0
3 years ago
Read 2 more answers
Patagonia managers look for employees who actively participate in the sport they design products for (i.e. a surfboard shaper ha
pochemuha

Answer:

job requirements or qualifications

Explanation:

Job requirements or qualifications refers to the set of skills, abilities, work experience, educational background, hobbies, etc., that the company considers are necessary for a candidate to possess in order for him/her to successfully perform the tasks related to the job opening.

In this case, Patagonia uses personal hobbies and lifestyle as part of their requirements for applying for a job, other companies might focus more on leadership skills, education, experience, but it depends on the type of product or service that the company sells.

4 0
3 years ago
A company sold equipment that originally cost $100,000 for $60,000 cash. The accumulated depreciation on the equipment was $40,0
Maurinko [17]

Answer:

$0 Gain or Loss

Explanation:

Given that,

Original cost of the equipment = $100,000

Accumulated depreciation on the equipment = $40,000

Book value of the equipment:

= Original cost of the equipment - Accumulated depreciation on the equipment

= $100,000 - $40,000

= $60,000

Gain/Loss = Sale value - Book value of the equipment

                 = $60,000 - $60,000

                 = $0

Therefore, the company should recognize a $0 Gain or Loss.

7 0
4 years ago
A company paid $0.85 in cash dividends per share. Its earnings per share is $3.50, and its market price per share is $35.50. Its
natali 33 [55]

Answer: 2.4%

Explanation:

Cash dividend = $0.85

Earnings per share = $3.50

Market price per share = $35.50

The dividend yield will be calculated as:

= Cash dividends / Market price per share

= $0.85 / $35.50

= 0.024

= 2.4%

The dividend yield is 2.4%.

3 0
3 years ago
The auditor of a public company is assessing the value of all the intangible assets owned by the company. Which of the following
liq [111]

Answer:

B. The company's brand equity

Explanation:

Intangible assets lack a physical presence. They are assets that cannot be touched or seen. Intangible assets are contrasted by tangible assets, which include land, buildings, vehicles, plants, and machinery.  Examples of intangible assets include patent brand names, trademarks, or and copyright.

Intangible assets have a use-life of more than one year. They can be created or acquired, just like tangible assets. From the list in the case, The company's cash reserves, company's plant and equipment, and company headquarters are tangible assets because they have a physical presence.

6 0
3 years ago
Other questions:
  • If a stricter quota, such as 30,000 tons of apricots, was imposed on this market, we would expect:
    5·1 answer
  • To get a complete picture of your target market, you must do Question 2 options: door-to-door surveys. primary research. seconda
    5·2 answers
  • At Spyglass Inc., a private eye firm, new hires are chosen with utmost care. The reputation of the company is to provide clients
    13·1 answer
  • A firm in a perfectly competitive market has a fixed cost of $1,000 and a variable cost of $500 while it is earning the revenue
    12·1 answer
  • James wants to know what academic path he should follow to get into the fastest growing job market, and the highest paying. you
    9·1 answer
  • Quentin operates an ice cream franchise which has shops throughout the United States. CoolCream Co., the franchisor, supplies th
    15·1 answer
  • A food worker suspects there are mice in the food establishment.
    15·2 answers
  • The accounting for bonds payable is:_______.
    6·1 answer
  • In Agile projects, detailed risk planning occurs during iteration planning, daily-up meetings, and retrospectives. True False
    5·1 answer
  • First Rentals purchased office supplies on credit. The general journal entry made by First Rentals will include a:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!