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 accountancy​
Pavel [41]
Accountancy is accountants have long coffee
5 0
3 years ago
Read 2 more answers
Which of the following statements about taxes is FALSE?
Shalnov [3]
The statement should be "<span>Not all types of income are taxed; while earned income and passive income are taxed, portfolio income is not taxed."

Thank you for posting your question here at brainly. I hope the answer will help you. Feel free to ask more questions.
</span>
4 0
3 years ago
Adrienne had contracted to convey real estate to rich. however adrienne died before the conveyance is completed. what is the sta
kondaur [170]
If he chose to, Rich can enforce the contract against Adrienne's estate. This is because, sickness or death of a promisor is not an avenue or excuse for non-performance in contracts such as this, which  can easily be delegated to another person for performance. 
3 0
3 years ago
Suppose that Scoobania, which has full employment, can obtain 1 unit of capital goods by sacrificing 2 units of consumer goods d
Leviafan [203]

Answer:

The correct answer is option c.

Explanation:

An economy named Scoobania is operating on full employment level. The production possibility curve of this economy is such that it can produce 1 unit of capital goods by sacrificing 2 units of consumer goods.

This means that the opportunity cost of one unit of capital goods is 2 units of consumer goods. However, through international trade this economy can obtain 1 unit of capital goods for 1 unit of consumer goods.  

This implies that the economy will be able to consume more of both capital goods as well as consumer goods. This indicates that Scoobania will be able to consume at a point beyond its production possibility curve.

3 0
4 years ago
On December 31, Leann Corp. paid $5,120 on an installment note that requires annual payments. The outstanding loan balance on Ja
OleMash [197]

Answer:

Dr Interest expense  $4,000

Dr Notes payable      $1,120

Explanation:

The $5,120 repaid comprised of both interest and principal repayments,hence there is need for the amount to be split into the two appropriate accounts.

The interest payable on the loan on yearly basis ,based on the outstanding loan balance of $50,000 is $4,000(8%*$50,000),hence the balance of $1,120($5,120-$4,000) represents the actual repayment of principal,as a result the notes payable account should be debited with $1,120.

3 0
4 years ago
Other questions:
  • RISK vs. Return Math Quiz
    15·1 answer
  • 1. Name several business etiquette guidelines that promote positive workplace conversations, in the office and at work-related s
    5·1 answer
  • All of the following are career myths that influence people’s perception of how important career explorations are for an individ
    5·1 answer
  • Band Instruments, Inc., sells seventy-six trombones to Community &amp; School Band Source, Inc. To avoid liability for most impl
    12·1 answer
  • The meaning of amicable
    14·1 answer
  • Damian works at the Container Store. While he is placing inventory on the shelves, a customer comes up to him. The customer ment
    15·1 answer
  • The production function in an economy​ is: Y​ = 2​(5.00Nminus0.0025Nsquared​), where the marginal product of labor is given​ by:
    5·1 answer
  • You are considering an investment in a clothes distributer. The company needs $ 102 comma 000 today and expects to repay you $ 1
    7·1 answer
  • Which of the following would you classify as a true emergency? A. Overdrawing your checking account B. Losing your job C. Wantin
    9·2 answers
  • Wildhorse Company purchased $1350000 of 11% bonds of Scott Company on January 1, 2021, paying $1272578. The bonds mature January
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!