Explore BrainMass

Write a program: Automatic Teller Machine Dispensing Money

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

Write a program for an automatic teller machine that dispenses money. The user should enter the amount desired (a multiple of ten dollars) and the machine dispenses this amount using the least number of bills. The bills dispensed are 50s, 20s, and 10s. Write a function that determines how many of each kind of bill to dispense.

© BrainMass Inc. brainmass.com September 19, 2018, 1:38 am ad1c9bdddf - https://brainmass.com/computer-science/compiler-theory/237410

Solution Summary

The attached program calculates the change that would be given by an automatic teller machine. The program is in C, and compiled and tested using Miracle C compiler.