MyProgrammingLab - For Gaddis: Starting Out with C++ From Control Structures through Objects
MyProgrammingLab - For Gaddis: Starting Out with C++ From Control Structures through Objects
15th Edition
ISBN: 9780133780611
Author: Pearson
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 1, Problem 30RQE

Available Credit

The following steps should be followed in a program that calculates a customer’s available credit:

1. Display the message “Enter the customer’s maximum credit.”

2. Wait for the user to enter the customer’s maximum credit.

3. Display the message “Enter the amount of credit used by the customer.”

4. Wait for the user to enter the customer’s credit used.

5. Subtract the used credit from the maximum credit to get the customer’s available credit.

6. Display a message that shows the customer’s available credit.

Blurred answer
Students have asked these similar questions
Sales TaxWrite a program that will ask the user to enter the amount of a purchase. The program shouldthen compute the state and county sales tax. Assume the state sales tax is 5 percent and thecounty sales tax is 2.5 percent. The program should display the amount of the purchase, thestate sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sumof the amount of purchase plus the total sales tax). Hint: Use the value 0.025 to represent 2.5 percent, and 0.05 to represent 5 percent.
software sales  a software company sells a package that retails for $99. quantity discounts are given according to the following table: quantity discount 10-19   10% 20-49    20% 50-99    30% 100 or more  40%   write a program that asks the user to enter the number of packages purchased. the program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.
A retail store grants its customers a maximum amount of credit. Each customer’s available credit is his or her maximum amount of credit minus the amount of credit used. Write a program that asks for a customer’s maximum amount of credit and then asks for the amount of credit used. The program should then properly display the customer’s available credit.

Chapter 1 Solutions

MyProgrammingLab - For Gaddis: Starting Out with C++ From Control Structures through Objects

Ch. 1.3 - What is an algorithm?Ch. 1.3 - Why were computer programming languages invented?Ch. 1.3 - Prob. 1.13CPCh. 1.3 - Prob. 1.14CPCh. 1.3 - Prob. 1.15CPCh. 1.3 - Prob. 1.16CPCh. 1.3 - Prob. 1.17CPCh. 1.5 - Prob. 1.18CPCh. 1.5 - Prob. 1.19CPCh. 1.5 - Describe the difference between a program line and...Ch. 1.5 - Prob. 1.21CPCh. 1.5 - What happens to a variables current contents when...Ch. 1.5 - What must take place in a program before a...Ch. 1.5 - Prob. 1.24CPCh. 1.7 - What four items should you identify when defining...Ch. 1.7 - Prob. 1.26CPCh. 1.7 - What is a hierarchy chart?Ch. 1.7 - Prob. 1.28CPCh. 1.7 - Describe what a compiler does with a programs...Ch. 1.7 - Prob. 1.30CPCh. 1.7 - Is a syntax error (such as misspelling a key word)...Ch. 1.7 - What is the purpose of testing a program with...Ch. 1.7 - Briefly describe the difference between procedural...Ch. 1 - Prob. 1RQECh. 1 - What is the difference between system software and...Ch. 1 - Prob. 3RQECh. 1 - Why must programs written in a high-level language...Ch. 1 - Why is it easier to write a program in a...Ch. 1 - Prob. 6RQECh. 1 - Prob. 7RQECh. 1 - Prob. 8RQECh. 1 - The job of the ________ is to fetch instructions,...Ch. 1 - Internally, the CPU consists of the _______ and...Ch. 1 - Prob. 11RQECh. 1 - The two general categories of software are...Ch. 1 - A program is a set of _______.Ch. 1 - Prob. 14RQECh. 1 - _______ is the only language computers really...Ch. 1 - __________ languages are close to the level of...Ch. 1 - ________ languages are close to the level of the...Ch. 1 - Prob. 18RQECh. 1 - Words that have special meaning in a programming...Ch. 1 - Prob. 20RQECh. 1 - Prob. 21RQECh. 1 - __________ characters or symbols mark thebeginning...Ch. 1 - Prob. 23RQECh. 1 - Prob. 24RQECh. 1 - Prob. 25RQECh. 1 - Prob. 26RQECh. 1 - __________ is information a program gathers from...Ch. 1 - __________is information a program sends to the...Ch. 1 - Prob. 29RQECh. 1 - Available Credit The following steps should be...Ch. 1 - Sales Tax Design a hierarchy chart or flowchart...Ch. 1 - Account Balance Design a hierarchy chart or...Ch. 1 - The variable x starts with the value 0. The...Ch. 1 - The variable j starts with the value 10. The...Ch. 1 - The variable a starts with the value 1. The...Ch. 1 - Find the Error 36. The following pseudocode...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
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
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Expressions in C++ | C++ tutorial for beginners; Author: Tutorial Mart;https://www.youtube.com/watch?v=XHbsZGpmRc8;License: Standard YouTube License, CC-BY
expression in python # python expressions; Author: Abhishek Tripathi;https://www.youtube.com/watch?v=Cc-kJGRjH6k;License: Standard Youtube License