Two people, "a" and "b", have checking and savings accounts. * * Create a 2x2 array to hold their amounts: a – checking: $500, savings: * $1,000; b – checking: $750, savings: $325. * * Have the ATM machine ask the user their name. * * Ask the user if they want to withdraw from their checking or their * savings account. * * Use a switch statement to process different types of accounts. * * Create software that will provide an ATM user with the proper change * for any dollar amount up to $200. ( C PROGRAMMING LANGUAGE) * * Example: Run the code for $19, $55, and $200. *
/*
* AHPA #8: The C ATM Machine
*
* Two people, "a" and "b", have checking and savings accounts.
*
* Create a 2x2 array to hold their amounts: a – checking: $500, savings:
* $1,000; b – checking: $750, savings: $325.
*
* Have the ATM machine ask the user their name.
*
* Ask the user if they want to withdraw from their checking or their
* savings account.
*
* Use a switch statement to process different types of accounts.
*
* Create software that will provide an ATM user with the proper change
* for any dollar amount up to $200. ( C
*
* Example: Run the code for $19, $55, and $200.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
int main(void) {
return 0;
}
(PLEASE WITH COMMENT AND OUTPUT SHOULD BE SHOWN IN PICTURE BELOW)
Step by step
Solved in 4 steps with 7 images