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
The financial statements of Flathead Lake Manufacturing Company are shown below. Income Statement 2017 Sales $ 9,300,000 Cost of
Nina [5.8K]

Question attached

Answer and Explanation:

Answer and explanation attached

4 0
3 years ago
The employees at Violet Inc. are required to complete their work and leave the office premises by 6:00 p.m. Team outings are org
earnstyle [38]

Answer: Norms

Explanation:

According to the given scenario, the violet Inc are basically organized the team outing every month for their employees and the company are expected from every employee to be present in the outing.

The given scenario is basically exemplifies the norms as it refers to the attitude and also the behavior. The norms is one of the social values that helps for developing the personality and the human behavior.

Norms is basically defined the standards or the rules for the human on the basis of their attitude and behavior.        

  Therefore, Norms is the correct answer.

4 0
3 years ago
Understanding that business organizations can be extremely diverse, identify and explain management strategies to promote motiva
Leona [35]

Some management strategies to promote motivation and communication are encouraging group work and having effective communication channels.

<h3>Why are motivation and communication important?</h3>

These two elements make sure employees give the best of themselves and can report/solve problems efficiently.

<h3>How to promote these elements?</h3>

Some strategies that can be used are:

  • Group work: If employees work together in projects they are more likely to communicate; also, this increases motivation as work is shared.
  • Communication channels: This makes employees they can easily and effective communicate with subordinates, colleagues and superiors in different situations.

Learn more about communication in: brainly.com/question/22558440

#SPJ1

4 0
2 years ago
Which of the following questions are addressed by financial managers? I. How should a product be marketed? II. Should customers
alexandr402 [8]

Answer:

3 is the correct answer, financial managers are in charge of all of the companies finances

Explanation:

4 0
3 years ago
Police officers are part of the law, public safety and security sector. <br><br><br> True <br> False
Ugo [173]

police officers are part of it all, its true

3 0
3 years ago
Read 2 more answers
Other questions:
  • A balanced scorecard approach creates goals in four key performance areas and assesses ________.
    14·1 answer
  • Elaine is upset with her group members because she wanted to lead the group but is not allowed to. She found that other group me
    8·1 answer
  • A forecast is defined as a(an) Select one: A. set of observations on a variable measured at successive points in time. B. quanti
    10·1 answer
  • During the month of June, Betty Incorporated purchased goods from two suppliers. The sequence of events was as follows: June 3 P
    5·1 answer
  • When manufacturers try to understand what customers are looking for, they are thinking about the __________ component of the pro
    10·1 answer
  • Suppose that the demand for picture frames is highly inelastic, and the supply of picture frames is highly elastic. A tax of $1
    11·1 answer
  • Resort Hotel Company replaces Sharon, a forty-five-year-old employee, with Terry. Sharonfiles a suit against the employer under
    5·1 answer
  • Suppose you have 3 jars with the following contents. Jar 1 has 4 white balls and 1 black ball. Jar 2 has 2 white balls and 1 bla
    14·1 answer
  • Marigold Corp. sold goods with a total selling price of $809,700 during the year. It purchased goods for $390,100 and had beginn
    12·1 answer
  • Which of these is NOTa concern for consumers in times of inflation? a.They cannot anticipate the cost of goods and services. b.T
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!