Draw hierarchy charts or flowcharts that depict the programs described below. (See Appendix D for instructions on creating flowcharts.) Account Balance Design a hierarchy chart or flowchart for a program that calculates the current balance in a savings account. The program must ask the user for: \(-\) The starting balance \- The total dollar amount of deposits made \- The total dollar amount of withdrawals made \(-\) The monthly interest rate Once the program calculates the current balance, it should be displayed on the screen.

Short Answer

Expert verified
Question: Create a hierarchy chart or a flowchart for a program that calculates the current balance in a savings account, taking into account user inputs, the calculation of the current balance, and the output display.

Step by step solution

01

Start

Draw the start symbol to initiate the flowchart.
02

Get Input

Draw the input symbols to represent the user prompts, acquiring: 1. The starting balance 2. The total dollar amount of deposits made 3. The total dollar amount of withdrawals made 4. The monthly interest rate
03

Compute New Balance

Use a process symbol to describe the calculation of the current balance using the following formula: Current Balance = Starting Balance + Deposits - Withdrawals
04

Calculate Interest

Using a process symbol, calculate the interest amount to be added to the current balance. The formula for interest calculation is: Interest Amount = Current Balance * Monthly Interest Rate
05

Update Current Balance

Use another process symbol to add the calculated interest amount to the current balance. The formula for updating the current balance is: Current Balance = Current Balance + Interest Amount
06

Display Output

Draw the output symbol to represent the display of the current balance on the screen.
07

End

Draw the end symbol to indicate the completion of the flowchart.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free