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
Evan believes stratification is important for society. He thinks inequality is good as it motivates the poor to work harder and
tresset_1 [31]

Answer: The correct answer is "a) structural functionalist".

Explanation: Evan's perspective on stratification is most in line with theory of structural functionalist, because this theory establishes that inequalities are functional for society, and argues that the most difficult jobs in any society have the highest incomes, in order to motivate people to fill the necessary roles for the division of labor. Therefore inequality serves social stability.

3 0
3 years ago
Label each scenario below according to the type of financial asset described.
PSYCHO15rus [73]

Answer:

SCENERIO 1=BOND

SCENERIO 2=LOAN

SCENERIO 3=STOCK

SCENERIO 4=SECURITIES WHICH ARE GUARANTEED BY LOANS

SCENERIO 5=LOAN

Explanation:

Bond is a type of loan or a financial instrument through which large corporations or Government Institutions borrow money from the public with the aim of paying with a fixed interest rate in a given period.

A Loan is amount requested by an organisation from a financial institution with the aim of paying back with some percentage of interest over a given period of time.

Stocks are also known as shares which forms parts of a particular Company sold to the public with the aim of raising capital, SHARES OR STOCK HOLDERS HAVE CERTAIN RIGHTS TO DIVIDEND AND VOTING TO REPLACE BIARD NENBERS ETC WHEN THE NEED ARISE IN THE ORGANISATION.

4 0
4 years ago
Elliott Company produces large quantities of a standardized product. The following information is available for its production a
olganol [36]

Answer:

Check below for the Answer and Explanation

Explanation:

Elliot Company process cost summary report

CALCULATION FOR UNITS TO ACCOUNT FOR:

Beginning Work in Process units 2,000

Add: Units Started in Process 20,000

Total Units to account for: 22,000

CALCULATION FOR UNITS TO BE ACCOUNTED FOR:

Units completed and transferred out 17,000

Ending Work in Process 5,000

Total Units to be accounted for: 22,000

Equivalent Units:

UNITS Material Cost Conversion

% Completion Units % Completion Units

Units completed

100% 17,000 100% 17,000

Ending Work in Process

100% 5,000 35% 1,750

Total Equivalent units 22,000 18,750

CALCULATION FOR TOTAL COST TO ACCOUNT FOR:

Material Conversion

Beginning work in Process

2,500 6,360

Cost Added during May

168,000 479,640

Total Cost to account for:

170,500 486,000

÷ Equivalent Units

22,000 18,750

Cost per Equivalent unit

7.75 25.92

CALCULATION FOR TOTAL COST ACCOUNTED FOR:

Units completed and Transferred out (17000 units)

Equivalent unit Cost per EU Total Cost

Material 17,000 7.75 131750

Conversion Cost 17,000 25.92 440640

Total Cost of Units completed and transferred out: 572,390

Ending Work in process (5000 units)

Equivalent unit Cost per EU Total Cost

Material 5,000 7.75 38750

Conversison Cost 1,750 25.92 45360

Total cost of Ending Work in process: 84,110

8 0
3 years ago
how can you guarantee that your talk or speech will be interesting to your audience? Is this good advice? Why or why not? Justif
Rashid [163]
If you want to make sure it's interesting, you have to cater your speech/talk to your target audience. This is good advice. A 15-page detailed Powerpoint presentation with note cards would do as much good when presenting to kindergarteners as a water hose would do good in a flood. But, say, it was a fire, then the water hose might come in handy. In our case, your boss at the business meeting would find your Powerpoint much more interesting than kindergarteners would. 

Hope this helps! Have a nice day :)
7 0
4 years ago
During 2018, ABC had the following cash flows: received cash of $5,000 billed to a customer in 2017; earned $20,000 of net incom
pashok25 [27]

Answer:

Cash flow from financing Activities  $22,000

Explanation:

            Financial activities Cash flow

Particulars                                            Amount

Dividends Paid                                     -$8,000  

Borrowing from Bank                           $40,000  

Stock Repurchased                             <u>-$10,000</u>

Cash flow from financing Activities  <u>$22,000</u>

5 0
3 years ago
Other questions:
  • Organizational buying criteria refer to
    11·1 answer
  • What are the four challenges associated with telecommuting mentioned in the article​
    5·2 answers
  • Which of the following is FALSE? a. To reduce cannibalization among products, make the products more homogenous b. After acquiri
    8·1 answer
  • A lessor is a party who acquires a right to the possession and use of goods under a lease.â
    8·1 answer
  • What is the maximum amount you would pay for an asset that generates an income of $ 250,000 at the end of each of five years if
    7·1 answer
  • Cosby uses a weighted-average process-costing system. All materials are added at the beginning of the process; conversion costs
    13·1 answer
  • The purpose of making closing entries is to: Select one: a. Reset the temporary accounts and update retained earnings. b. Enable
    10·1 answer
  • SIROM Scientific Solutions has $12 million of outstanding equity and $4 million of bank debt. The bank debt costs 4% per year. T
    14·2 answers
  • Monthly sales are $530,000. Warranty costs are estimated at 3% of monthly sales, warranties are honored with replacement product
    10·1 answer
  • Required: 1-a. Prepare a contribution format income statement for the game last year. 1-b. Compute the degree of operating lever
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!