Second Assignment Due April 25th.
Save a copy of your first banking example and add extend it for the second assignment.
Save a copy of your first banking example and add extend it for the second assignment.
The bank still has one customer but the customer can have at least two accounts. In addition to being able to withdraw and deposit money the customer can also transfer funds from one account to another. The customer can also have a line of credit account.
I would like you to use methods (also called functions or routines) in your code.
You can review the slide pack called Introduction_to_Methods_revised.pdf. We have gone through the slides on March 24th. The copy from April 4th has some revision.
You can review the slide pack called Introduction_to_Methods_revised.pdf. We have gone through the slides on March 24th. The copy from April 4th has some revision.
Or you can watch a youtube video at the following link.https://www.youtube.com/watch?v=7MBgaF8wXls&list=PLFE2CE09D83EE3E28 Watch Tutorials 15 and 16.
Additional notes
- comment your code.
- Give the proper feed back to the customer. e.g if he/she withdraws money and there is insufficient funds, inform the customer.
- Think of error scenarios. e.g invalid input.
- No need to hand in flowcharts.
- Due on April 25th
- If you finish before April 25th, add the functionality to handle two customers.
Screenshot of a section of my code:
Evaluation:
Feed back
A few bugs in the logic so that performing the same operation twice prints out an error message and then the program recovers.
-good attempt to use multiple methods. (although that's where the bug was introduced too)
-good job recognizing that you can put common code into methods so that it isn't duplicated unnecessarily.
-no exception handling, so non-integer input results in program termination. (I did not take mark off for this)
A few bugs in the logic so that performing the same operation twice prints out an error message and then the program recovers.
-good attempt to use multiple methods. (although that's where the bug was introduced too)
-good job recognizing that you can put common code into methods so that it isn't duplicated unnecessarily.
-no exception handling, so non-integer input results in program termination. (I did not take mark off for this)
Mark 8 out of 10. -2
Well done!
No comments:
Post a Comment