C++ Programming: From Problem Analysis to Program Design
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN: 9781337102087
Author: D. S. Malik
Publisher: Cengage Learning
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 20PE

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 hotel offers a special discount as follows: If the number of rooms booked 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.

Blurred answer
Students have asked these similar questions
The company « Super discounted used cars inc.» pays their employees according to this chart:  250$ per months plus 50$ per car sold.  If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information:  The name of the employee, the number of cars sold, as well as the total of all the sales for the month.  algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary. Each input must be validated.and make trace memory screen
BP Service Station sells gasoline and has a car wash. Fees for the car wash are the US $15,000.00 with a gasoline purchase of US $20,000.00 or more and the US $20,000.00 otherwise. Three kinds of gasoline are available: regular at K3,900.00, unleaded at the US $, 200.00, and super unleaded at the US $ 4 600.00 per litter. You are required to write a program that prints a statement for a customer. Input consists of the number of litters purchased, kind of gasoline purchased (R, U, S, or for no purchase, N), and car wash desired (Y or N). (a). Develop a Pseudocode and a structure chart for the service station problem.(b). Write a program in c++ programming to compute the amount due from a customer of the service station.
Strauble-Dytisa is a manufacturer of refrigerator parts located in Quaretero, Mexico. They supply parts to manufacturers in the U.S. such as Maytag and Frigidaire. Orders for parts are received (by Sales Department) from manufacturers. Each order (see the order form on the next page) has an order#, order date, and a total order amount (you can ignore taxes, s/h etc.). The order includes also the part#’s that are required, the part names and quantity of the part. An order could include for e.g. #51500 “door Liner” qty 50 as seen on the form. Since different manufacturers can order the same part (e.g. door liner), the order “qtys” from different orders are combined into one “#needed” for each part. The Sales Department checks orders against an inventory file to see if parts are available. If the parts are available, an invoice is created and the parts are shipped to the manufacturer along with an invoice. A copy of the invoice is sent to accounting. If the parts are not available, a copy…
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Control Structure in Data Structure - Data Structures - Computer Science Class 12; Author: Ekeeda;https://www.youtube.com/watch?v=9FTw2pXLhv4;License: Standard YouTube License, CC-BY