Explore BrainMass

Write a program: Automatic Teller Machine Dispensing Money

This content was COPIED from BrainMass.com - View the original, and get the already-completed 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 March 21, 2019, 5:54 pm ad1c9bdddf

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.