You are on page 1of 1

7

Defining diagram

Input Process Output


Savings_account Read savings_account Savings_account
1. number Calculate final_balance 1. number
2. balance_forward Calculate total_balance_forward 2. balance_forward
3. deposits Calculate total_deposits, 3. deposits
total_withdrawals,
total_interest_earned,
total_final_balance
4. withdrawals Print savings_account 4. withdrawals
5. interest_earned Print final_balance 5. interest_earned
Print total_balance_forward,
total_deposits,
total_withdrawals,
total_interest_earned,
total_final_balance
final_balance
total_balance_forward
total_deposits
total_withdrawals
total_interest_earned
total_final_balance

Solution algorithm

You might also like