2012/5000 Week 1 Assignment

1809 Words8 Pages
ITECH1000/5000 Programming 1 School of Science, Information Technology and Engineering Assignment 1 Teaching Period: 2012/27 Introduction This assignment is designed to assist your preparation for the examination. You are strongly advised to start early on this assignment and work thoughtfully. If you need advice from someone else, make sure that you fully understand and don’t just take the advice on trust. If you run into time trouble, you will do better in the long run if you understand more but actually do fewer of the tasks set by the due date. You should continue to make use of this assignment after you have handed it in, as part of your study for the examination. This assignment should be worked on outside class times. In particular,…show more content…
The records are stored in a text file that contains, for each bank customer, their given name, account number and balance. Each customer record occupies one line in the file and each field is separated by tabs. Processing of this program is menu driven. Some of the menu items have been coded; others have a stub or dummy code provided. The existing code is provided in a separate Python file (filename: menu.py). Assignment conditions Refer to the course description for the assessment weight of this task, the due time/date and school guidelines in relation to lateness, extensions, special consideration and plagiarism. The report You will be expected to hand in a report written in Word. Your report should consist of the following items: 1. Section A: answers to the questions. Section B: report briefly on each task; for those tasks not attempted report the task letter and the words ‘not attempted’. Section C: as for section B. Section D (Post-graduate students only): as described in the tasks set. CRICOS Provider No. 00103D Page 1 of…show more content…
00103D Page 2 of 7 ITECH1000/5000 Programming 1 School of Science, Information Technology and Engineering g). A program takes input, processes and produces output. Assume the user runs ‘menu.py’ and enters ‘5’. What are the inputs and expected outputs of this program? Section B - Modifications (60 marks) Modify the program according to the following instructions. (Attempt only those modifications that are specified.) The order given is the order in which the necessary skills are learned. Save your copy of the file using your id in front of menu.py For example, 30089999menu.py a). menu item 3 – the show_name() code doesn’t work as it does not display the name of the corresponding customer when the correct account number is entered; the show_mark() code (item 4) is similar and does work correctly; identify and correct the errors in show_name(); report what the errors were and how you fixed them; b). menu item 4 – display the result of show_balance( ) in main( ), not in the function itself; describe the changes you made and explain how they work; c). menu item 2 – if an invalid (non-existent) account number is entered, display a suitable message in main( ) (use the comments already written in the function and main( ) as a guide); how useful were the

More about 2012/5000 Week 1 Assignment

Open Document