Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone answer this in c programming and show the output? Also, can you start with int main or after displayMenus? Thank you! Bank Function

Can someone answer this in c programming and show the output? Also, can you start with int main or after displayMenus? Thank you!

image text in transcribed

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

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

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions