Design3 - CSE 335 Design Assignment 3 For this design...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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 files 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 classfi to dficribe 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 oflen 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 finance 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 fixed 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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern