next up previous
Next: About this document Up: No Title Previous: Sort-2

Assignments

  1. Write a Fortran program that will read in an initial bank deposit, followed by exactly 3 withdrawals. Useful prompts should be presented to the user querying them for the desired input. The program should also print out the final balance.

  2. Write a Fortran program that will read in an initial bank deposit, followed by exactly 3 withdrawals. The balance should be printed after every transaction and a warning should be printed any time that the balance is negative.

  3. Write a Fortran program that will read in an initial bank deposit, followed by an unlimited number of withdrawals. An input withdrawal of will signify that the user has finished entering transactions. The balance should be printed after every transaction and a warning should be printed any time that the balance is negative.

  4. Write a Fortran program that will read in an initial bank deposit. Subsequently, the user will enter either deposits or withdrawals until they are done. After each transaction, the balance should be printed, including a warning if the balance goes negative. You need to consider how to prompt the user for the entry being either a deposit or a withdrawal. In addition, you need to consider an elegant way of letting the user terminate the program.

  5. Write a simplified money machine program. The user is given choices of a) making a deposit, b) making a withdrawal, c) obtaining a balance, or d) reviewing the 5 most recent transactions.

  6. Augment your money machine program so that a user has both a checking and savings account. The user should be able to perform any of the transactions listed above for either checking or savings. In addition, the user should be able to transfer funds between the two accounts.

  7. Add the following feature to your money machine program: After the user exits the program, all information should be preserved so that the next time the user invokes the program, all previous transactions/balances/etc are in place. I.e., this should start looking very similar to a real single user money machine.

  8. In Fortran, write a program to evaluate and in the interval . Use Matlab to view the graphs. Next, write an additional routine that will be added to your original Fortran program and will find the place(s) where these two functions intersect. Note: your Fortran program may not use any arrays. You may want to try reading ahead a bit and using subroutines for this assignment.


Russ Miller
Thu Sep 14 13:56:19 EDT 1995