Student Lab 1: Input, Processing, and Output 1 INTRODUCTION TO COMPUTER PROGRAMMING (CST3100) ASSIGNMENT 2 WORKING WITH UML CLASS DIAGRAMS And JAVA CODE USING ECLIPSE Assignment instructions: In this...

1 answer below »
do the TODO


Student Lab 1: Input, Processing, and Output 1 INTRODUCTION TO COMPUTER PROGRAMMING (CST3100) ASSIGNMENT 2 WORKING WITH UML CLASS DIAGRAMS And JAVA CODE USING ECLIPSE Assignment instructions: In this assignment you will continue to work with UML Class diagrams and other program design specifications to implement them in the Java programming language using the IDE Eclipse (as have been taught in class). The assignment consists of specifications interpreted from the provided UML Class Diagram and further written specifications described below. You are to complete the implementation of the UML Class diagram (in the Java programming language) and implement the following features to either the code you completed for assignment 1 or using the solution code for assignment 1 (posted on BrightSpace, provided assignment 2 code recommended). Modify the proper code components so a customer can have a “collection” of phone numbers (use public static constants to identify a home phone, work phone, and cell phone numbers; a customer should also be able to have a collection of bank accounts (if you need to determine the specific “type” of bank account use the “instanceof” operator to see if the object you have was an instance of a SavingsAccount or ChequingAccount or DailyInterestAccount etc. Your test classes should be modified appropriately to accommodate the new collections (arrays) in your modified classes. Further details may be found in the customer class and TestCustomer class. Marks: The weight of this assignment 10% of your entire course marks. Marks are distributed as follows: Completion of UML class diagram implementation – 5 Marks Completion of source code changes - 10 marks Completion of test classes – 10 marks Completion of any code documentation – 5 marks Deadline: See BrightSpace posting for DUE DATE. Submitting your solution: Provided a ZIP files submission containing all of your completed source code for the assignment. You are required to: 1. Name the submitted zip file using the format: LastName_FirstName_CST3100- XXX (section number e.g. 011)-ASSIGNMENT2.ZIP. 2 2. Upload the ZIP document to the lab submission portal created by the professor in your own lab section. BankAccount -customer:Customer #balance:double=0 +BankAccount() +BankAccount(customer:Customer) +withDraw(withdrawalAmount:doublel):double +deposit(depositAmount:double):double +calculateServiceCharge():double +accountOwner():String +balance():double DailyInterestAccount -DailyInterestAccount() +DailyInterestAccount(customer:Customer) +calculateServiceCharge():double ChequingAccount -ChequingAccount() +ChequingAccount(customer:Customer) +calculateServiceCharge():double Inherits from BankdAccount Customer -name:String -address:String -myAccount:BankAccount -phoneNumber:String -Customer() +Customer(name:String,addres:String) +getName():String +getAddress():String +getPhoneNumber():String +setName(name:String):void +setAddress(address:String):void +setPhoneNumber(phoneNumber:String);void +accountBalanceIS():double +openAccount():boolean BankAccount HAS a Customer ASSIGNMENT 1 Bank Account System Class Diagram SavingsAccount -SavingsAccount() +SavingsAccount(customer:Customer) +calculateServiceCharge():double Inherits from BankAccount to get the account balance (accountBalanceIS() method) you must invoke a method on the "myAccount" object for a customer. the "double" value balance for a BankAccount is "protected", therefore accessible from any child class of BankAccount The overloaded constructor for specific types of bank accounts should Invoke the superclass (parent) overloaded constructor which requires a Customer object as an argument BankAccountSystemClassDiagram-Assignment1.vsdx Page-1
Answered Same DayDec 10, 2021

Answer To: Student Lab 1: Input, Processing, and Output 1 INTRODUCTION TO COMPUTER PROGRAMMING (CST3100)...

Ramachandran answered on Dec 11 2021
120 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here