
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
a. Draw the hierarchy chart , flowchart , Pseudocode , C++ and then plan the logic for a program needed by Hometown Bank.The program determines a monthly checking account fee. Input includes an account balance andthe number of times the account was overdrawn. The output is the fee, which is 1 percent of the balance minus 5 dollars for each time the account was overdrawn. Use three modules. The main program declares global variables and calls housekeeping, detail, and end-of-job modules. The
housekeeping module prompts for and accepts a balances. The detail module prompts for and accepts the number of overdrafts, computes the fee, and displays the result. The end-of-job module displays the message
.
b. Revise the banking program so that it runs continuously for any number of accounts. The detail loop executes continuously while the balance entered is not negative; in addition to calculating the fee, it prompts the user for and gets the balance for the next account. The end-of-job module executes after a number less than 0 is entered for the account balance.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 7 steps with 8 images

Knowledge Booster
Similar questions
- A program will be written in C language for a microwave oven. The desired features of the microwave oven areas follows: 2 buttons will be used to adjust how many seconds the microwave oven will work. One button is forincreasing and the other for decreasing. Each time the button is pressed, the working time will be determinedin 5 second intervals. 1 button will be used to determine the operating power (watts) of the microwave oven. The power ratingsare: 200, 300, 450, 600, 750, 800.(You can think of them as operating modes, not numerical values. Such as mod1=200, mod2=300 etc.According to the selected mode number, the leds arranged side by side will be turned on. For example; Ifmod3 is selected, 3 leds will be on, if mod4 is selected, the 4th led will also be on.) After the operating time and operating mode are set, the start button will be pressed and the microwave ovenwill be started. When the oven starts to work, the timer will count down and the motor that rotates the tableinside…arrow_forwardIn C++ Use naming conventions for variables, functions, methods, and more. This makes it easier to understand the code. Write simple code and do not over complicate the logic. Code exhibits simplicity when it's well organized, logically minimal, and easily readable. Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 10 the output is: -15-10-505 10 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first.arrow_forwardThe Grocery store bill/receipt generating described in Ex 2.1 above for at least five items should be automated in C++. The customer's name, the item's name, the price, and sales tax and VAT are all required by the software. Net total is calculated after a 5 percent reduction on gross total is taken into account in the program's sub-total (cost + tax). The final bill/receipt is generated by the application in the correct format.arrow_forward
- Write a C++ program. Imagine a publishing company that markets both book and audiocassette versions of its works. Create a structure publication that stores the title (a string) and price (type float) of a publication. From this structure nest two structures: book, which adds a page count (type int), and tape, which adds a playing time in minutes (type float). Each of these three structures should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display its data. Write a main() program to test the book and tape structures by creating instances of them,asking the user to fill in data with getdata(), and then displaying the data with putdata().arrow_forwardWrite a C++ program having the following functionality. You will create bank accounts (either Current or saving) for 2 people. Every person will have different initial balance. Your program will calculate and show the following functions for the given number of years. 1. Annual Increment 2. Zakat deduction Additional Notes: 1. For saving account increment is 5% and for current account there is no increment. 2. Zakat deduction ratio is 2.5% (applied to all accounts). 3. Zakat will be deducted after increment Final output should look like this: Name: Person 1 Initial Balance: 10000 Annual Increment: 500 Zakat deducted: 262.5 New Balance: 10237.5 Name: Person 2 Initial Balance: 10000 Annual Increment: 500 Zakat deducted: 262.5 New Balance: 10237.5arrow_forwardComputer sciencearrow_forward
- Local declarations are those that are stored in the computer's memory, but how are they stored? Using local declarations is unnecessary if the same goal can be accomplished without them. When reference parameters may be used in any function, why bother with value parameters? When it comes to processing programme data, how important are value parameters?arrow_forwardPlz solve the question using c programming without changing or adding any other library other than the library # include < stdio.h >, the second photo is a sample of how the coding should look likearrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY