A hotel charges a standard rate of $100 per night. For platinum members (customers who have...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed 20 nights or more), the hotel offers a discounted price of $90 per night. Also, for platinum members staying 5 or more nights, 1 night is free. For example, a platinum member staying 5 nights would be charged $90 for 4 nights ($360). Write a program that prompts the user for the number of nights for their stay and whether they are a platinum status member and then determines the cost for their stay. Also, if they are a platinum member and their stay is 5 or more nights, indicate this in a note. Additionally, if the customer is not a platinum member and their stay was 3 or more nights, display a note asking them to consider becoming a platinum member. Here is an example run: # of nights: 5 Platinum member (y/n)? y Charge = $360 Note: charges discounted for one free night Write a program to determine the total cost for a set of purchases. The program should: • use a while loop to prompt the user for each purchase's information, including for each item the number of items and the unit cost at the end of the while loop, get user input on whether there are more items • after the while loop, calculate tax at 7.5% • display the pre-tax cost, the amount of tax, and the total cost including tax Here is an example session: Item 1 Enter count of item 1: 2 Enter unit cost for item 1: 5.25 More items (y/n)? y Item 2 Enter count of item 2:1 Enter unit cost for item 2: 10.50 More items (y/n)? n Enter sales tax rate (%): 7.5 Total cost (pre-tax): 21.00 Sales tax: 1.57 Total cost (with tax): 22.57 A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed 20 nights or more), the hotel offers a discounted price of $90 per night. Also, for platinum members staying 5 or more nights, 1 night is free. For example, a platinum member staying 5 nights would be charged $90 for 4 nights ($360). Write a program that prompts the user for the number of nights for their stay and whether they are a platinum status member and then determines the cost for their stay. Also, if they are a platinum member and their stay is 5 or more nights, indicate this in a note. Additionally, if the customer is not a platinum member and their stay was 3 or more nights, display a note asking them to consider becoming a platinum member. Here is an example run: # of nights: 5 Platinum member (y/n)? y Charge = $360 Note: charges discounted for one free night Write a program to determine the total cost for a set of purchases. The program should: • use a while loop to prompt the user for each purchase's information, including for each item the number of items and the unit cost at the end of the while loop, get user input on whether there are more items • after the while loop, calculate tax at 7.5% • display the pre-tax cost, the amount of tax, and the total cost including tax Here is an example session: Item 1 Enter count of item 1: 2 Enter unit cost for item 1: 5.25 More items (y/n)? y Item 2 Enter count of item 2:1 Enter unit cost for item 2: 10.50 More items (y/n)? n Enter sales tax rate (%): 7.5 Total cost (pre-tax): 21.00 Sales tax: 1.57 Total cost (with tax): 22.57
Expert Answer:
Answer rating: 100% (QA)
A hotel charges a standard rate of 100 per night For platinum members and customers who hav... View the full answer
Related Book For
Cost Accounting A Managerial Emphasis
ISBN: 978-0133392883
6th Canadian edition
Authors: Horngren, Srikant Datar, George Foster, Madhav Rajan, Christ
Posted Date:
Students also viewed these programming questions
-
Dr jones deposited 2000 in a rbc saving account at rate of 3.75 simple interest Eight months later she deposited an additional $3000 into the account with the same simple interest rate of 3.75%. a....
-
Explain how the monthly wage tax form works. How do I come up with the calculations?
-
1. (a) A company may change its name by a special reduction and with the approval of the registrar signified writing . In view of the foregoing statement discuss the procedure of changing a name of...
-
Solomon Company's cost and production data for two recent months included the following: March April Production (units) 400 600 $2,400 $ $2,400 $1,200 Rent Utilities 800 Required a. Separately...
-
The function f(x) = k(2 x x3) has an inverse function, and f1(3) = 2. Find k.
-
A Company produces precision medical diagnostic equipment at two factories. Three medical centers have placed orders for this months production output. The table Below shows what the cost would be...
-
Describe the key ways by which an effective presentation can be made to venture capitalists.
-
Mark Goldsmiths broker has shown him two bonds. Each has a maturity of 5 years, a par value of $1,000, and a yield to maturity of 12%. Bond A has a coupon interest rate of 6% paid annually. Bond B...
-
Novak Corp. owns and operates a number of outdoor clothing retail stores in the Pacific Northwest. Recently, the company has decided to locate another store in a rapidly growing area of Idaho. The...
-
Metro Land is a country located on a 2D Plane. They are having asummer festival for everyone in the country and would like tominimize the overall cost of travel for their citizens. Costs oftravel are...
-
David James is a cost accountant and business analyst for Doorknob Design Company ( DDC ) , which manufactures expensive brass doorknobs. DDC uses two direct cost categories: direct materials and...
-
What is interim audit? Why it is required?
-
What is routine checking? What types of work are included in routine checking? What are the objectives of routine checking? Describe the advantages and disadvantages of routine checking. Discuss the...
-
State the controls that can be applied over inputs and processing of data in a computerised accounting environment.
-
Distinguish between principles of auditing and techniques of auditing.
-
Write notes on the following: a. Hands-on testing b. Files library c. Auditing around the computer d. Utility software
-
The distance light travels in one year is approximately 5,870,000,000,000 miles. The distance light travels in 100 years is: (a) 587 10 8 miles, (b) 587 10 10 miles, (c) 587 10 -10 miles, (d) 587 ...
-
Describe a job you have had in the past or a job you are very familiar with. Indicate the negative aspects of the job and how it could be improved with current human resource management techniques.
-
Stephen Bergstrom is the new corporate controller of a multinational company that has just overhauled its organizational structure. The company is now decentralized. Each division is under an...
-
Learning World, Inc. has two divisions: Test Preparation and Language Arts. Results (in millions) for the past three years are partially displayed here: REQUIRED 1. Complete the table by filling in...
-
Assume the following: Pet Transport (PT) does not make any sales on credit. PT sells only to the public, and accepts cash and credit cards. Of its sales, 90% are to customers using credit cards, for...
-
Using the results of Problem 2.6, determine the invariants \(U_{i}\) and \(V_{i}\) for the AS/3501 lamina, where \(i=1,2,3,4\). Problem 2.6 Find all components of the stiffness and compliance...
-
Show how the Mohr's circles in Figure 2.17 can be used to interpret the transformed lamina stiffness \(\bar{Q}_{12}\). FIGURE 2.17 40 'n Q11 In- n> Q11 20 -U-
-
Using the results of Problem 2.6 or Problem 2.16, compare the transformed lamina stiffnesses for AS/3501 carbon/epoxy plies oriented at \(+45^{\circ}\) and \(-45^{\circ}\). Problem 2.6 Using the...
Study smarter with the SolutionInn App