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
HELPPPPPPPPPPPPPPPPPPPPPPP
Rashid [163]
Answer 2 is the best choice
3 0
3 years ago
A(n) _______ is a person who engages in leadership activities but whose right to do so has not been formally recognized.
alexdok [17]

Answer:

The correct answer is letter "C": informal leader.

Explanation:

Informal leaders are individuals to whom people put their trust on because they provoke a strong influence within a group or because others see that individuals as examples to follow. However, informal leaders are not officially recognized. Most formalized leaders begin naturally being informal leaders until the collective will of subordinates place them in the position of power.

4 0
3 years ago
Sally is in the business of purchasing accounts receivable. Last year, Sally purchased an account receivable with a face value o
marusya05 [52]

Answer:

Sally’s basis in the Account Receivable is $60,000

She has a bad debt deduction of $0. There is no Bad debt deduction for Sally. Rather she made a profit on the transaction.

Explanation:

The Account Receivable can be defined as a Debt Instruments. Debt instruments in accounting are valued at Lower of Cost or Net Realizable Value.  

Cost is the amount of cash or its equivalent that was expended to obtain an asset. The cost of this Account Receivable therefore is 60,000

Net realizable value (NRV) is the value that can be realized from the sale of an asset. Net Realizable value of the Account Receivable therefore is 80,000.

Therefore the value to be utilized as the value of the Account Receivable 60,000.

Below is the accounting entries to record the transaction and recognized profit.

For the Face Value of the Debt    

Debit: Account Receivable Account(Debtors)    60,000.00    

Credit: Account Receivable Purchase Account      60,000.00  

     

For the payment of the A/R    

Debit: Account Receivable Purchase Account    60,000.00    

Credit: Bank      60,000.00  

     

For the settlement received on the A/R    

Debit: Bank    65,000.00    

Credit: Account Receivable Account(Debtors)       60,000.00  

Credit: Profit & Loss        5,000.00  

8 0
3 years ago
Lee Company has the following information for the pay period of December 15–31: ​ Gross payroll $16,000 Federal income tax withh
vodomira [7]

Answer: $10,800

Explanation:

In the above scenario it is worthy of note that the company is the one that pays for Federal and State Unemployment tax.

That means that the employees pay for Federal income tax withheld at $4,000, Social security at 6% and Medicare at 1.5%.

Calculating salaries payable therefore would be,

= 16,000 - 4,000 - (16,000 * 6%) - (16,000 * 1.5%)

= $10,800

Salaries Payable would be recorded at $10,800.

8 0
3 years ago
What form of welfare gives direct payments to recipients
jonny [76]
Since you provide no options, one of the form of welfare that gives direct payments to recipients is : DPDP
Which stands for Direct payments demonstration Projects

hope this helps

5 0
3 years ago
Other questions:
  • How long does it take to become a​ millionaire? A ​$500,000 investment will hit​ $1 million in 39 years at an annual interest ra
    9·1 answer
  • How are the objectives of lean manufacturing achieved? a. Supplier partnering b. Employee involvement c. Product-oriented produc
    15·1 answer
  • The following information is available on a depreciable asset owned by Mutual Savings Bank: Purchase date July 1, Year 1 Purchas
    13·1 answer
  • If there were 70000 pounds of raw materials on hand on January 1, 100000 pounds are desired for inventory at January 31, and 250
    6·1 answer
  • In a market economy, those who are willing and able to buy what is produced
    12·1 answer
  • Use AD/AS model to explain how Canadian economy saw 4% Real GDP with very little inflation. Select one: a. Canada's Aggregate de
    10·1 answer
  • Not sure how to graph
    15·1 answer
  • You own a franchise of rental car agencies in Florida. You recently read a report indicating that about 80 percent of all touris
    9·1 answer
  • A quantitative method used to evaluate multiple locations based on total cost of production or service operations is called:
    11·1 answer
  • A yield can be paid in the form of?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!