Question: Intro to Programming in C-Large Program 2-Bank simulation You will write a program that will simulate the management of money in 3 accounts checking, savings,
Intro to Programming in C-Large Program 2-Bank simulation You will write a program that will simulate the management of money in 3 accounts checking, savings, and redit directive must be uscd to define a MAXCREDIT of-4s00 DO NOT declare any pointers for this assignment DO NOT use global variables NOT use break statements to stop loops Use function prototypes. Write comments for each function before each prototype and again before each function e Be sure to comment your code adequately. .Be sure to indent properly. definition how it should be donc Check the course textbook and lecture code examples to see Use meaningful variable names NOTE: To transfer between accounts, you need to make a withdraw Your starting bank balances should be as follows: followed by a deposit . o Checking: 480.45 Savings: o Credit: 124.62 -2134.78 You must have at least o user defined functions as follows a No modifications may be made to the functions idefine CRT SECURE NO WARNINGS rincludecstdio.h> #define MAXCREDIT -4500 isplays the list of options available l/pronpts for the user's selection and sets the value of the selection void RunBankChoices(int tchoicei l/greets the user void Greeting): /Takes one double argument and one characten argument void AccountBalance(double account, char letter) ays the current balance of the account (C checking, s savings, credit) //takes reference to all the bank account money val /Makes the decsion of which trnsaction should be done void the /takes a reference to the selected account balance gets the added amount from the user //takes a reference to the selected account //gets the withdrawal amount from the user //checks to see if there is enough money avail y from the account void WithdraMoney(double taccountPtr, chan letter)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
