Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the program in C language. and also follow the instructions given on the question. there should be 4 other functions named displayMenu(),getDeposit(),getWithdrawl() and

image text in transcribed

please write the program in C language. and also follow the instructions given on the question. there should be 4 other functions named displayMenu(),getDeposit(),getWithdrawl() and 4.displayBalance().

It should use switch statement to select which function to choose based on users selection.

and once it works, put it into a do~while loop allowing the user to do another transaction.

It should also use data validation loop in all cases.

please don't use array, pointer or string in this assaignments . for this assaignments we can use function, loop, switch statement etc. thank you. please ask me if you have questions. thank you.

Grade Name: Bank Function Programming Assignment 1) create a function called displayMenu0 that produces a menu that looks like the following: 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 users choice from the menu and return it to the main function 2) create a function called getDeposit() hat accepts the current balance as a parameter and asks the user for the amount that they would like to deposit. You function must then add that amount to the current balance and return the result to the main function 3) create a function called getwithdrawal0 hat accepts the current balance as a parameter and asks the user 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 displayBalance0 hat 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 a. Display the menu b. 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 c. Once it works, put it into a do while loop allowing the user to complete another transaction 6) 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 7) once complete, upload the (.cor .cpp) file to Moodle attach a copy of the source code to this sheet and turn it in during class on the due date

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Does the structure of the team shape how you might lead it?

Answered: 1 week ago