I am new at this programming stuff, and functions are confusing to me. I think what I do is replace some of the text from tutorial 5 with functions, but not quite grasping what to do. I have, and will, continue to read more about these to further try to understand this. I practiced some more with what I learned in tutorial 5, and I think I am understanding that, but functions are confusing me. They seem efficient in use and would make the program easier to write, but I am lost right now. What I am trying to accomplish with this tutorial is the same as tutorial 5, but structuring it different by using functions. I will attach what I have so far, some instructions in what I am trying to do, and what the tutorial 5 looks like without functions.
Please put in the form of what is seen in a compiler as it helps me learn better. The instructions say I shouldn't have to modify it too much. The program should run just like tutorial 5; with the user entering a current balance, entering the number of deposits and withdrawals, and then the bank record printing out. Basically, transforming the same output into functions. I will continue to work on it as well.
Functions are self-contained blocks of code that performs one task efficiently. The solution includes dividing the whole problem into a number of functions that help accomplish the overall task, in this case, an Teller Machine. ...
This solution is instructive in understanding how to convert a flat C program into a function based modular program.
Write a program for an automatic teller machine that dispenses money
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.View Full Posting Details