Purchase Solution

Use of Functions in C for a Teller Machine

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

This solution is instructive in understanding how to convert a flat C program into a function based modular program.

Solution Preview

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. ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.