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.
bob  employs a painting company that wants to use your services to help create an invoice generating system. the painters submit an invoice weekly. they charges $30 per hour worked. they also charge tax -15%. bob likes to see an invoice that display all the information- number of hours, the charge per hours, the total Before tax and total After tax. since this is an invoice, we also need to display the name of the company (painting Xperts) at the top of the invoice. display all of the information on the screen. Using Pseudocode, develop an algorithm for this problem.
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