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
How are prices determined in a free market economy​
professor190 [17]
If it’s free then I don’t think they need to determine the price bc it’s free
5 0
2 years ago
In July 2012, a small chocolate factory receives a large order for chocolate bars to be delivered in November. The spot price fo
Anettt [7]

Answer:

$24,530, $23,530

Explanation:

Incomplete word <em>"and if the spot price in September proves to be $2,300."</em>

<em />

Note that Call options will be exercised only if the price on expiry is greater than strike price

Strike price = $2400

Premium paid = $53 for each contract, so the total premium paid = $530 for 10 contracts

<u>CASE 1</u>

Price = $2600

As price on expiry=2600 > Strike price=2400

Call option will be exercised.

Company will pay = $2400 * 10+530 = $24,530

<u>CASE 2</u>

Price = $2300

As price on expiry=2300 < Strike price=2400

Call option will not be exercised and will purchase from open market

Company will pay = $2300 * 10+530 = $23,530

4 0
2 years ago
I make $2,000/month. Of that the government takes $200 in taxes. Then I pay $1,000 for rent, $400 for food, and $200 in utilitie
Musya8 [376]

Answer:

My savings

Explanation:

Savings for a month is the amount left after deducting all my expenditure from my monthly income

Savings = income - total expenditure

income = $2,000

total expenditure = $200 + $1,000 + $400 + $200 = $1,800

Savings = $2,000 - $1,800 = $200

7 0
3 years ago
The spread or difference that results when product price exceeds average total cost determines
Illusion [34]
Profitability

these extra words are added to pad my precise answer with additional words so there will be enough more words
4 0
3 years ago
What are some types of graphics you can add to a Word document?
zavuch27 [327]
You can add in shapes or change the color of the paper to like a lined piece of paper, also you can add pictures
7 0
3 years ago
Other questions:
  • The central bank uses a ____________________ monetary policy to offset business related economic contractions and expansions? la
    15·1 answer
  • Carrie bought a house 5 years ago for $200,000. at that time, she borrowed $195,000 from her bank. the house is now worth $225,0
    10·1 answer
  • Ward and June are in the 32% tax bracket. A bond of Dell Computer Corporation with a face value of $10,000 is included in their
    5·2 answers
  • Regardless of the index we use:
    7·1 answer
  • On January 1, 2018, Red Inc. issued stock options for 280,000 shares to a division manager. The options have an estimated fair v
    14·1 answer
  • Identify the corresponding budget(s) from which dollar amounts are transferred directly in constructing each of the following:
    11·1 answer
  • What is the amount of interest earned after two years on a $100 deposit paying 4 percent simple interest annually?
    6·1 answer
  • A simple definition of curriculum?
    6·1 answer
  • Leroy works 40 hours per week as a tire-store manager. If he made $25,480
    10·1 answer
  • Assign the correct ICD-10-CM
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!