$30
CSC 3020
Java Programming
Lab 04
25 points
All labs must be submitted by the Canvas. No email or hard copy is accepted. You must follow the following format:
a. Submit your file to the Canvas. You must submit your file on time; otherwise, you will receive zero.
b. You can upload your file as many times as you like. Only the last attempt counts because the last file you uploaded is the only file your instructor will see.
c. There will be several modules on the Canvas. You need to upload your file using the correct module on the Canvas.
d. Name the lab file: Lab (labt number)
e. To upload your file(s):
• In Course Navigation, click the ASSIGNMENTS module.
• Click the title of the assignment.
• Click the Submit Assignment button.
• Add File. ...
• Submit Assignment. ...
• View Submission.
It is your responsibility to make sure that the file is uploaded correctly. If you uploaded a wrong file, you receive zero; files will not be accepted after due date even if you have a prove that the file is created before the due date.
Make sure you review the Cheating & Plagiarism policy on Canvas.
Solution to this assignment will not be posted on Canvas; however, any question can be discussed in the class upon request of a student.
An Account class has the properties account number and balance, and methods to deposit and withdraw funds. Create two subclasses for checking and saving accounts. A checking account has a fee protected data field and savings account has an interest rate protected data filed. Add a constructor and toString methods to each class; call super class toString method from the sub class toString method.
Write a test program (TestAccount) that creates objects of SavingsAccount and CheckingAccount and invokes their toString() methods.