Question
C Programming . Create a program that does the following: a. As before, include comments at the beginning of your program with your name &
C Programming .
Create a program that does the following: a. As before, include comments at the beginning of your program with your name & assignment b. Ask the user to enter a starting balance for their bank account (you should allow decimals) c. Ask the user to enter an arbitrary number of transactions. Negative numbers will be treated as withdrawals, positive numbers will be treated as deposits. Entering a value of 0 will mean the user is done with their entries. d. When the user is done with their entries, calculate and print the following: Total of all deposits (print only 2 decimal places) Total of all withdrawals (print only 2 decimal places) Final balance of the bank account (print only 2 decimal places) e. If the final balance is negative, print a warning message for the user
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started