Starting Out with C++: Early Objects (9th Edition)
9th Edition
ISBN: 9780134400242
Author: Tony Gaddis, Judy Walters, Godfrey Muganda
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 1, Problem 26RQE
Program Plan Intro
Available Credit
Hierarchy chart:
Hierarchy chart explains the structure of a
- When a program with many functions call the other functions, the programmers usually use a tool besides flowchart to represent the complete picture of how those functions have to be linked with each other.
- Hierarchy chart only tells how one function calls the other. It does not give the information about its performance and execution.
- It is a graphically representation of the structure of a program. It contains boxes that show step by step process in the program.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Traffic light control sequence flowchart
A typical traffic light control sequence for a 4 road junction has been described below (for a road system where the vehicles keep to their left while driving i.e. Australia, UK, South Africa etc).
The light changes as per the sequence listed below:
A. Before switch ON, all 4 roads should get ‘flashing yellow’ so as to enable them to look around and cross the road junction.
B. When switched ON, Main roads 1 & 3 should get green signals G1/G3 to go straight. This signal remains on for 30 seconds.
C. The above signals should be changed over to go right GR1/GR3 for 15 seconds only if any sensor S1/S3 of vehicles waiting to turn right is detected in the right turn lane . This will take place after a brief yellow signals Y1/Y3 in between.
D. In case no vehicle is waiting for right turn, the roads 1 & 3 should be closed with red signals R1/R3 and interim yellow signals Y1/Y3 for 2 seconds.
E. The above…
Program Description
A custom tailor offers a variety of custom suit options to customers. The company has tasked you with creating a program
that will allow tailors to enter information about the kind of material used to make the customer's custom suit and the
number of square yards used to make the suit and will determine the total cost to charge the customer.
Use the following steps to create the program:
1. The program should display a menu that asks the technician to select the type of material that was used. Make
sure the menu is formatted exactly as in the Sample Input and Output of the instructions (including
indentation).
I
2. The program should determine the cost per square yard of the material. The cost per square yard is determined
based on the type of material that is used.
Table 1: Type of Material and Cost per Square Yard
Type of Material
Cost per Square Yard
Satin
$8.95
Linen
$9.65
Leather
Silk
$18.45
$28.99
3. The program should then ask the tailor to enter the number…
Employee view attendance report
The employee must be logged in to the
system to perform this function. The
employee selects the report period (range
of dates: from - to). The employee selects
"show report". Range of dates for the
report must be maximum 3 months, so if
the range is invalid, the system displays an
error message. The system displays every
working day in the report with the status
of the employee in this day, which could
be one of the following: on time, late, did
not come.
One actor?
One use case name?
One class ?
Attributes for the class ?
One relation between classes ?
Chapter 1 Solutions
Starting Out with C++: Early Objects (9th Edition)
Ch. 1.2 - Why is the computer used by so many different...Ch. 1.2 - List the five major hardware components of a...Ch. 1.2 - Internally, the CPU consists of what two units?Ch. 1.2 - Prob. 1.4CPCh. 1.2 - Prob. 1.5CPCh. 1.2 - Prob. 1.6CPCh. 1.2 - What are the two general categories of software?Ch. 1.2 - Prob. 1.8CPCh. 1.2 - What do you call a program that performs a...Ch. 1.2 - Word processing programs, spreadsheet programs,...
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 - Describe the difference between a key word and a...Ch. 1.5 - Prob. 1.19CPCh. 1.5 - Prob. 1.20CPCh. 1.5 - Prob. 1.21CPCh. 1.5 - Prob. 1.22CPCh. 1.5 - What must take place in a program before a...Ch. 1.5 - Prob. 1.24CPCh. 1.6 - What four items should you identify when defining...Ch. 1.6 - Prob. 1.26CPCh. 1.6 - Prob. 1.27CPCh. 1.6 - What is pseudocode?Ch. 1.6 - What is the difference between high-level...Ch. 1.6 - Describe what a compiler does with a programs...Ch. 1.6 - Prob. 1.31CPCh. 1.6 - Prob. 1.32CPCh. 1.6 - Prob. 1.33CPCh. 1 - Computers can do many different jobs because they...Ch. 1 - The job of the _____ is to fetch instructions,...Ch. 1 - Internally, the CPU consists of the _____ and the...Ch. 1 - Prob. 4RQECh. 1 - The two general categories of software are _____...Ch. 1 - Prob. 6RQECh. 1 - Since computers cant be programmed in natural...Ch. 1 - _____is the only language computers really...Ch. 1 - Prob. 9RQECh. 1 - Prob. 10RQECh. 1 - A programs ability to run on several different...Ch. 1 - Words that have special meaning in a programming...Ch. 1 - Prob. 13RQECh. 1 - _____ are characters or symbols that perform...Ch. 1 - _____ characters or symbols mark the beginning or...Ch. 1 - Prob. 16RQECh. 1 - A(n) _____ is a named storage location.Ch. 1 - A variable must be _____ before it can be used in...Ch. 1 - The three primary activities of a program are...Ch. 1 - _____ is information a program gathers from the...Ch. 1 - _____ is information a program sends to the...Ch. 1 - A(n) _____ is a diagram that graphically...Ch. 1 - Prob. 23RQECh. 1 - What is the difference between system software and...Ch. 1 - Prob. 25RQECh. 1 - Prob. 26RQECh. 1 - Account Balance Write high-level and detailed...Ch. 1 - Sales Tax Write high-level and detailed pseudocode...Ch. 1 - The variable sum starts with the value 0. Add 10...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 33. The following pseudocode...Ch. 1 - Suppose one of your friends, who paints the...Ch. 1 - Candy Bar Sales Using Program 1-1 as an example,...Ch. 1 - Baseball Costs Using Program 1-1 as an example,...Ch. 1 - Flower Garden Write a program that calculates how...
Knowledge Booster
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
- GreenLawn a local lawn care company has different pricing policies for its customers. GreenLawn sends out monthly invoices and will give discounts if payments are made within 5 days. The discounting policy is as follow: If the amount of the monthly bill is greater than $300, subtract 4 percent from the invoice; if the amount is between $300 and $100, subtract a 2-percent discount; if the amount is less than $100, do not apply any discount. All bills made via the web automatically receive an extra 3-percent discount. Develop a decision for GreenLawn discounting decisions. Decision Table submission: Include the initial table with all rules, and the most simplified table. Use different colors in the columns to easily show how columns are collapsed/simplified. please do not provideo solution in image format thank you!arrow_forwardBook Shop Inventory A book shop uses a personal computer to maintain the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher, stock position, etc. Whenever a customer wants a book, the shopkeeper inputs the title and author of the book and the system replies whether it is in the list or not. If it is not, an appropriate message is displayed. If book is in the list, then the system displays the book details and asks for number of copies. If the requested copies are available, the total cost of the books is displayed; otherwise the message "Required copies not in stock" is displayed. A program to accomplish this is shown in Fig.10.8. The program uses a template to define the structure of the book. Note that the date of publication, a member of record structure, is also defined as a structure. When the title and author of a book are specified, the program searches for the book in the list using the function look_up(table,…arrow_forwardMarriage Validity You were hired by the City Hall of Kulafu as a programmer. Your task is to write a spreadsheet program that will determine whether two individuals can be married legally or not. The marriage will be legal depending on the following conditions: both individuals should be at least 18 years old the individuals should not have the same gender (same gender marriage is not legal in Kulafu) the individuals should not have a married status (in Kulafu, status are single, widow/widower, divorced and married) Write a program that will accept via keyboard the information regarding the age, gender and marital status of the two individuals. The following numeric coding system should be used: for gender: M or m represents Male and F or f represents Female. For marital status: S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and MA or ma represents Married. The word should output the word "LEGAL" if all the criteria above are met. Otherwise, the…arrow_forward
- ITP 100 Programming Logic & Design Project In this project, you will design a program to perform the following task: Design a program, the STAR Movie Rating App, which can be installed in a kiosk in theaters and patrons can immediately give their rating of a movie they’ve just seen. Each theater patron enters a value of 0, 1, 2, 3, or 4 indicating the number of stars that the patron awards to the App’s featured movie of the week. If a user enters a star value that does not fall in the correct range, the program will prompt the user continuously until a correct value is entered. The program executes continuously until a negative number is entered to quit. At the end of the program display: the number of ratings given the average star rating for the movie of the week the following message depending on the average rating. 3 or better – “Great movie choice!” 2 up to 3 – “Good movie choice!” 1 up to 2 – “Not a Good movie choice.” 0 up to 1 – “Bowling would have been a better…arrow_forward44% 2:34 PM Theme Park Ticket Application In holidays, people try to save their time and purchase entrance tickets of the favored theme parks online. This project aims to create a simple and most efficient application that will display a menu to the visitors which contains: 1. Book a ticket The program will display a menu that contains all the ticket prices below, get how many tickets he/she would like to buy, and displays the total price. The ticket Price Child - Under 8 years old 70 USD Adults 110 USD Seiners 50 USD 2. Calculate the price The program should calculate the total price of tickets and display it to the visitor. The program will ask if the visitor is a student, then a discount of 40% is applied to the total price. 3. Exit the application The application should be terminatedarrow_forwarddesign pattern question :- Using the state pattern, you have to implement an application that help track the item ordered from online shop. The client orders an item from online shop, then item can go to post office, then it will be delivered to the user home. Or the item after being ordered it goes to the post office, then the user will pick it up from the post office. In both cases; either take the item from the post office or has it delivered to the client's home represents the end of the process. Q1)Draw the state diagram that shows all possible states and transitions? Q2) Write code of the Ordered state? Q3) Write the implementation of the ShopOrder class; most important things are the states declaration, the constructor, a function to return robot statearrow_forward
- C-LANGUAGE Design flying characters Screen Saver will display flying characters just like a Screen Saver, here is a set of characters that will access randomly and position on the screen will also random and on the random position program will display random character from assigned set of characters until user does not press any key.arrow_forwardInstruction: Identify if the following is UNIQUE IDENTIFIER or NOT. Plan ID Workout IDarrow_forwardJAVA You are to create a banking Java program/application that will be used by a bank manager and a customer. The program can perform the following tasks: The main( ) creates a menu for a bank manager and a bank customer. For a bank manager, he/she can add information of bank customers and display all customer records. For a bank customer, he/she can make a deposit to a bank account and withdraw money from the account. Hint: The main ( ) could have a static method that allows a bank manager to add customers’ information to a text file. The information consists of Customer ID, Name (full name), and Email Address. Note that a loop should be used to perform the manager's task. As a result from the process, a text file "BankCustInfo.txt" is created. Also, the main( ) could have another static method that allows the bank manager to display all customer records to the screen. Create a class, BankCustomer, that contains attributes such as CustomerID and Balance. The class allows a bank…arrow_forward
- C# onlyarrow_forwardFlowchart You need to develop a solution for a drone surveillance system. The system must implement the following rules: The system uses three drones but only one drone will fly at any given time. When the drones are at rest (in their 'home' location) they sit on a recharging station and can fully charge a battery in 30 minutes (the charger will automatically turn off when the battery is fully charged). A drone's battery life lasts up to 40 minutes of flight time. The surveillance system operates 24 hours a day, 7 days a week. The flight path is preprogrammed using a set of GPS coordinates and does not need to be programmed in your solution. A drone will follow the flight path continuously (circling) until the battery has just enough power remaining to return to the 'home' location to recharge. When a drone returns to the 'home' location, it seats itself in the charger, and another drone (one that has the most charge) will automatically launch and repeat the cycle. During the…arrow_forwardPROGRAMMING LANGUAGE: C++ALSO PASTE SCREENSHOTS OF OUTPUTS You are required to create a simulation of an elevator system. There are 7 floors in a building. A user may enter the elevator and press the button of the destined floor. The simulation should display appropriate messages while moving towards the destined floor.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage