Jacob wants a program that displays his savings account balanceat the end of the month, given the beginning balance, totaldeposits, and total withdrawals.
Input Begbal double Dept double Withdraw double ProcessingNewbal = begbal + dept - withdraw Output Beginningbalance xxx.x Deposited = xxx.xx Withdraw = xxx.xnewBalance = xxx.xx
Feb 1 1000 begbalance 1000.00
Feb total deposited 500
Feb withdrew 200
New balance march newbal = begbalance + dept -withdraw
1000+500 -200
Jacob wants a program that displays his savings account balance at the end of the month, given the beginning balance, to
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am