Unformatted text preview: CSE 335 Design Assignment 3 For this design a$ignment, you may either submit an electronic submi$ion consisting ot a single zip or tar archive of PDF ﬁles output trom Bouml or you can submit on paper in cla$ on the followingday This assignment are due Monday, September 27, 2010 at 11:55pm or In class Tuesday, September 28 at 10:20am When creating classes, be sure you can check oil the followmg. F It should be possible to refer to things that are the same using a single class. For example, baggers and tellers at a grocery store are both emplm, so classﬁ to dﬁcribe each should be derived from a common employee class.
F There should be no redundant attributes in a class hierarchy. For example, you should not have "name" as an attribute on both Heat Exchangers and Pressurized Tanks. Redundant attributes should be moved into superclasses.
Superclasses should not have attributE that are not used by derived classes. UML should not have language arlifacls My cla$ names are Camel Case, do not have spaces, do not stait witha leading C (language artifact), and do start with a capital letter My attribute names are Camel Case, do not have spaca, do not start With a leading "m" (language aitilact), and do stait With a lower case letter. None of your attributes are classes (With the exception of libraiy classes) ThEe checked items are tor design. In object oriented programming we'll oﬂen create a design, then relax some of these rules when we move to implementation, but we'll talk about that later. Problems 1. You are designing a personal ﬁnance system You have accounts Each account has a name, bank name, bank address, bank routing number (same tor all accounts at one bank), interest rate, and account number You need to be able to record transactions A deposit
has a date, account, who from, memo, and amount. A withdrawal has a date, account, payee, memo , and amount. A transfer has a date, a from account, a to account, a memo, and an amount. An interat deposit has a date, account, average dairy balance, and an amouril.
Create a class diagram for this system in Eouml In several cases this problem said ”data” when it meant "date". Jhave ﬁxed it. 2. A‘Eume you have two bank accounts One is called Checking and is at the MSU Federal Credit Union, East Lansing, MI. It pays 0% interest and the account number ol22891185. The other is called Savings and is at the MSU Federal Credit Union, East Lansing, MI. it
pays 0.58% interest and the account number is 22991102 You have made the following transactions A deposit ol$1OO to checking on 91201201 0 from Kroger that is salary.
A withdrawal of $50 from checking on 9121 f201 l) for cash spending money
A transfer of $50 from checking to savings on 9(2212010 saving tor Cancun Create an object diagram in Bouml that describes this scenario. When you are done turn in thehle using Handin or turn in paper in class. CSF 335 ...
View Full Document
- Fall '10