Instructions: FOR LAB :You will be asked to develop a series.
1 Pages385 Words353 Views
Added on 2019-09-16
AMA INTERNATIONAL UNIVERSITY – BAHRAINSalmabad, Kingdom of BahrainCOLLEGE OF COMPUTER STUDIES_√__1st Tri, ___2nd Tri, __ 3rd Tri, ___ Summer, SY 2016-2017CSCI431-Computer Programming - II (Term Project)Instructions:FOR LAB :You will be asked to develop a series of programs based on the concepts learned inthis course. You will also be asked to execute these programs followed by a brief question answersession.(20 marks) Attached rubrics.FOR LECTURE :Student will also prepare a documentation listing of all the programs along withtheir output and description of the programs in your own way.(20 marks ) Attached rubrics.1. Banking SystemLook at theAccountclassAccount.javaand write amainmethod in a different class to brieflyexperiment with some instances of theAccountclass.Using theAccountclass as a base class, write two derived classescalledSavingsAccountandCurrentAccount. ASavingsAccountobject, in addition to theattributes of anAccountobject, should have an interest variable and a method which addsinterest to the account. ACurrentAccountobject, in addition to the attributes ofanAccountobject, should have an overdraft limit variable. Ensure that you have overriddenmethods of theAccountclass as necessary in both derived classes.Now create aBankclass, an object of which contains an array ofAccountobjects.Accounts in the array could be instances of theAccountclass, theSavingsAccountclass,or theCurrentAccountclass. Create some test accounts (some of each type).Write an update method in the bank class. It iterates through each account, updating it inthe following ways: Savings accounts get interest added (via the method you alreadywrote); CurrentAccounts get a letter sent if they are in overdraft.TheBankclass requires methods for opening and closing accounts, and for paying adividend into each account.Hints:Note that the balance of an account may only be modified throughthedeposit(double)andwithdraw(double)methods.TheAccountclass should not need to be modified at all.Be sure to test what you have done after each step.1
Found this document preview useful?
Java program to grade students based on quizzes and examslg...
Research on Object Oriented Languagelg...
Certain Professor Oak from Pallet Townlg...
Artificial Life Simulator - Java CS2JA11 Practical Weeks 3,4,5lg...
Splat, Revised Start with the "Splat" Programlg...
Science Lab Report Assignment | Questions and Answerslg...