Answered step by step
Verified Expert Solution
Question
1 Approved Answer
To Whom it May Concern: Please don't use arrays in this solution. DO NOT use ARRAYS or complex strings. ONLY USE FUNCTIONS. Follow the directions
To Whom it May Concern:
Please don't use arrays in this solution. DO NOT use ARRAYS or complex strings. ONLY USE FUNCTIONS. Follow the directions carefully.
Name Grade: Bank Function Programming Assignment 1) Create a function called displayMenul) that produces a menu that looks like the following Welcome to HFC Federal Credit Union Please select from the following menu D: Make a deposit W: Make a withdrawal B: Check your account balance Q 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 and return the result to the main function. 2) 3) Create a function called getWithdrawal) that 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 Create a function called displayBalance() that accepts the current balance as a parameter and displays the current balance 4) 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 compl ete, upload the (.c or.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
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