COMP1005/COMP5005: Fundamentals of Programming - IT Computer Science Assignment Help

Download Solution Order New Solution

Assignment Task

 1. Setting up for Practical Test

 Create and work in a FOP/PracTest4 directory for the test.

2. Download and modify a Python program

Download accounts.py and testAccounts.py from the Assessments under Practical Test 4. Note this implementation has a Portfolio class to hold a collection of bank accounts

Modify testAccounts.py to:

  1. Create an account "Castle", a/c number "999999-1", balance $1000
  2. Create an account "Shrubbery", a/c number "999999-2", balance $100
  3. Print the balances of the accounts
  4. Deposit $100 into the Castle account
  5. Withdraw $10 from the Shrubbery account
  6. Withdraw $1000 from the Shrubbery account
  7. Print the balances of the accounts

Modify accounts.py to:

  1. Complete the code for getNumAccounts() and getTotalBalance()

Modify testAccounts.py to:

  1. Add another account “Grail”, a/c number "999999-3", balance $100 (can be included at start of program, with other accounts)
  2. Withdraw $1000 from the Grail account
  3. Use and test getNumAccounts() and getTotalBalance() – printing out their results

Modify accounts.py to:

  1. Add exception handling:

 Modify withdraw() to check if the balance is able to cover the withdrawal amount.

  1. If not, raise an InsufficientFundsError exception (in the withdraw method) and leave the balance unchanged. Insufficient funds error is defined in accounts.py

Modify testAccounts.py to:

  1. Add exception handling:

Handle the possible exceptions for each withdrawal in testAccounts.py (try/except) – print an explanatory message if an exception is thrown.

3. Update the README file

Copy or create a README file for the test, update it to include your files.

This COMP1005 - IT Computer Science has been solved by our Phd Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing Style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered.You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turn tin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.