Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Example Format: 3) Generate a class diagram that corresponds to the following text description: A Preferred Customer is a Customer with an extra property: discountPercentage.

image text in transcribed

Example Format:

image text in transcribed

3) Generate a class diagram that corresponds to the following text description: A Preferred Customer is a Customer with an extra property: discountPercentage. Remember that since you've already fleshed out the Customer class above, you can just draw it as a single-compartment box in this diagram. 4) Generate a class diagram that corresponds to the following text description: A Product has the following properties:productID, name, description, unitCost. A CartItem has the following properties: product, quantity, unitCost. It has the following public methods: add(quantityToAdd:int) and remove(quantityToSubtract:int). A CartItem represents a single product that has been added to a Shopping Cart (the CartItem's quantity property describes how many of that product are in the cart). A Company class has a name, street address, city, state, and zip code (all private). It also has a collection of employees, each of whom has a name, number, job title, and pay rate (all private). An Employee has a public method called performGruntWork(). The Company class has a private variable, employeeCount, that keeps track of the number employees it has. It also has a public method called fireAllToRaise Profits() that takes an integer (daysLeft) and returns a float (profits). Company - employeeCount:int -name:String - street Address: String -zipcode:String -city: String +fire AllToRaisePro fits(daysLeftint): float employees Employee -name:String - number: String -jobTitle:String -payRate:String +perform GruntWork():void

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

=+j on to staff their operations in the global marketplace.

Answered: 1 week ago