/*  * 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)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

/*
 * 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 <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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education