Create an ATM program. writing a C program You will ask the user for an initial
ID: 3652093 • Letter: C
Question
Create an ATM program. writing a C programYou will ask the user for an initial balance and then
provide the user with a menu of options. The user can choose
as many or as little of the options as he/she wants.
For example, a sample execution of your code would
be as follows:
Enter your initial balance: 10000
1 Deposit Funds
2 Withdraw Funds
3 Print Balance
4 Quit
Enter your selection (1-4): 1
Enter amount to Deposit: 1000
Your new balance is 11000
1 Deposit Funds
2 Withdraw Funds
3 Print Balance
4 Quit
Enter your selection (1-4): 2
Enter your withdrawal: 100000
Error!! You don't have that much to withdraw.
Enter your withdrawal: 10000
Your new balance is: 1000
1 Deposit Funds
2 Withdraw Funds
3 Print Balance
4 Quit
Enter your selection (1-4): 3
Your balance is 1000
1 Deposit Funds
2 Withdraw Funds
3 Print Balance
4 Quit
Enter your selection (1-4): 4
Thanks for banking with CIS126 Bank. Please come again.
Explanation / Answer
/////////////////////////////////////////// #include "stdafx.h" void swap(char& a, char& b) { char temp = a; a = b; b = temp; } void quicksort(char* tab, int left, int right) { if (left >= right) return; swap(tab[left],tab[left + (right - left)/2]); int pivotPos = left; for (int i = left + 1; i c) return binarySearch(c,soredTab,left,--pos); else return binarySearch(c,soredTab,++pos,right); } void readSortDisplay(int count, char* buff) { char* temp = buff; printf("pass %d numbers:",count); for (int n = 0; nRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.