/* * 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 PROGRAMMING LANGUAGE) * * Example: Run the code for $19, $55, and $200. * */ #include #include #include #include #include int main(void) { return 0; } (PLEASE WITH COMMENT AND OUTPUT SHOULD BE SHOWN IN PICTURE BELOW)
/*
* 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)
![Enter your name:
b
Would you like to withdraw from (c)hecking or (s) savings?
S
How much would you like to withdraw?
173
Amount in account to be withdrawn from: $325
$100 bill
$ 50 bill
$20 bill
$ 1 bill
$ 1 bill
$ 1 bill
Amount in account after withdrawl: $152](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F82aefee1-a4fd-40e7-8b3f-97f92bfc6e2a%2F7d50b2b3-997c-4b81-a303-a3e0c03ca6af%2F05l1tv8_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)