Question: Can someone answer this program? Thanks c programming language. Bank Function Programming Assignment 1) Create a function called displayMenu() that produces a menu that looks

Can someone answer this program? Thanks c programming language.  Can someone answer this program? Thanks c programming language. Bank Function

Bank Function Programming Assignment 1) Create a function called displayMenu() that produces a menu that looks like the following: D: W: B: a: Welcome to HFC Federal Credit Union ! Please select from the following menu: Make a deposit Make a withdrawal Check your account balance To quit The function should then accept the user's choice from the menu and return it to the main function. Create a function called getDeposit() that accepts the current balance as a parameter and asks the user for the amount that they would like to deposit. Your function must then add that amount to the current balance 2) and return the result to the main function. 3) Create a function called getWithdrawal) that accepts the current balance as a parameter and asks the for the amount that they would like to withdraw. Your function must then subtract that amount from the current balance and return the result to the main function. 4) Create a function called displayBalance) that accepts the current balance as a parameter and displays the current balance. 5) Using the above functions, create the main) function to do the following: Display the menu Use a switch statement to select which function to choose based on the user's selection. If the user chooses to quit, respond with "Thank You!". If the user chooses an invalid selection, produce an error message. a. b. c. Once it works, put it into a do while loop allowing the user to complete another transaction. In all cases, you must complete data validation (within data types). Each function that requires input from the user should have it's own data validation loop. 6) 7), Once complete, upload the (.c or cpp) file to Moodle and turn it this sheet during class on the due date

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!