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
If you put $7000 in a saving account that earns 2% interest for 10 years, how much will you have in
blondinia [14]

Answer:

1) 56,000

2) 9,950

3) 8,479

4) 25,500

Explanation:

1)20% of 70.000=56.000

2)5% of 10.000=9.950

3)21% of 10.500=8.479

4)15% of 30.000=25.500

4 0
3 years ago
Digg Co. installs a manufacturing machine in its factory at the beginning of the year at a cost of $36,000. The machine's useful
Nastasia [14]

Answer:

Annual depreciation (year 1)= $1,400

Explanation:

Giving the following information:

Buying price= $36,000.

Useful units= 300,000 units of product.

Salvage value= $6,000

During its first year, the machine produces 14,000 units of product.

To calculate the depreciation expense for the first year under the units of production method, we need to use the following formula:

Annual depreciation= [(original cost - salvage value)/useful life of production in units]*units produced

Annual depreciation= [(36,000 - 6,000)/300,000]*14,000

Annual depreciation= 0.1*14,000= $1,400

3 0
3 years ago
a pricing tool that focuses on the changes in total revenue and total cost from selling one more unit to find the most profitabl
tigry1 [53]

A pricing tool that focuses on the changes in total revenue and total cost from selling one more unit to find the most profitable price and quantity is called Marginal analysis.

Marginal analysis is an examination of the added benefits of an activity against the incremental costs resulting from the same activity. Businesses use marginal analysis as a decision-making tool to help them maximize their potential revenue. For example, if a company has a budget to make room for another employee and plans to hire another person to work in the factory, marginal analysis indicates that hiring that person provides a net marginal benefit.

To learn more about Marginal analysis, click here.

brainly.com/question/14513809

#SPJ4

5 0
1 year ago
Western Wear Clothing issues 1,600 shares of its $0.01 par value common stock to provide funds for further expansion. Assuming t
Kaylis [27]

Answer:

Journal Entry

Explanation:

The Journal Entry is shown below:-

Cash Dr, (1,600 shares × $13 per share) $ 20,800

          To Common Stock (1,600 shares × $ 0.01 par) $16

         To Additional Paid in Capital in excess of par-Common Stock $20,784

(Being Issuance of common stock is recorded)

Therefore for recording the issuance of common stock we debited cash and credited common stock and additional Paid in Capital in excess of par common stock

7 0
3 years ago
ABC bank wants to strengthen the security of its online bill-pay features. Therefore, it decides that in addition to a password,
marta [7]

Answer:

<u>multifactor authentication</u>

Explanation:

<u>Multifactor authentication:</u> The term "multifactor authentication" is described as an "electronic authentication method" whereby a computer user is able to grant access to a specific application or website only after he or she has successfully completed or presented two or more than two shreds of evidence to any authentication mechanism, for example, inherence, knowledge, and possession, etc.

<u>In the question above, the given statement represents "multifactor authentication".</u>

6 0
3 years ago
Other questions:
  • If soybean farmers know that the demand for soybeans is inelastic, in order to increase their total revenues they should a. use
    5·1 answer
  • "5. you are buying a property that will carry a $1,750,000 mortgage. your loan is interest only for 5 years but the interest rat
    8·1 answer
  • Sony is considering a 10 percent price reduction on its HD TV sets. If the price-elasticity coefficient for the sets in this pri
    11·1 answer
  • Treetopplers, a U.S. lumber company, produces wood at a plant in Oregon on September 13, 2017. It sells the wood to Buildit and
    5·1 answer
  • Charlie Stone wants to retire in 30 years, and he wants to have an annuity of $1,000 a year for 20 years after retirement. Charl
    5·1 answer
  • Which of the following statements about goods is FALSE? Question 1 options:
    7·1 answer
  • If an efficient quantity of soybeans are produced and sold in the US market, then the market price of soybeans will be equal to:
    5·1 answer
  • You need to have $33,250 in 11 years. You can earn an annual interest rate of 4 percent for the first 6 years, and 4.6 percent f
    15·1 answer
  • Select all that apply. Choose the numbers that are factors of 50. 2 25 4 8 10 15dfguyaedudgasgas
    9·2 answers
  • Thomlin Company forecasts that total overhead for the current year will be $13,502,000 with 157,000 total machine hours. Year to
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!