{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Design1Solution - CSE 335 Design Assignment 1 In each of...

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 1 In each of these what I was really looking for was discoveringthe classes inheritance, and attributes ldon‘t care if you put a C on your classes or m on your attributes or even if you make them one word In my solution below I used attributes like “tube diameter". When We move to code we put it in the correct form for the language We are using, but here | only cared that you figured out the items Problems 1 You are working toraii oil company and need to create an inventory system that describes the equipment the company uss in a refineiy What follows are the Wpfi of equipment and the characteristiis of each type. List the names and attributes (What will be the member variables) for a set of classes to describe this equipment, Each type of equipment is in bold and is followed by the information necessary to describe that piece of equipment in our inventory, Class Equipment Attributes name, manufacturer, weight, cost Class: Pump Derived from: Equipment Attributes suction prasure, discharge pre$ure Class CentrifugalPump Derived from: Pump Attributes impeller diameter, number of impeller blades Class CylinderPump Derived from: Pump Attflbutfii cylinder length, cylinder diameter, number of cylinders Class HeatExchanger Derived from: Equipment Attributes surface area, tube diameter, tube pressure, tube length Class Tank Derived from: Equipment Attributes volume, pressure Class FloatingRootTank Derived from: Tank Attributes diameter, height Class PrgurizedTank Derived from: Tank Attributs' tank Wall thicknax 2, A window on a computer screen has an x,y location, a width, and a height A scrollable window is a Window With an additional x and y ottset due to the scroll bars and an underlying document width and height, A text Window is a scrolling window with text to be displayed, A control is a Window With a name and an id value (number), A button is a control with some text to display, A check box is a control with a checked or not checked status List the names and attributes (what Will be the member variables)for a set of classes to describe these elements of a computer user interface Glass Window Attributes x looation, y location, width, height Class ScrollableWindoW Derived from: Window Attflbutfii x ottset, y ofiset, document Width, document heigtit Class TextWindoW Derived from: ScrollableWindow Attributes text Class. Control Derived from: Window Attributes name, id value Class. Button Derived from: Control Attributes text Class Checkon Derived from: Control Attributes check status ...
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