Question: Example Format: 1) Generate a class diagram that corresponds to the following text description: A CreditCard class has the following properties: issuer, number, and expiration

 Example Format: 1) Generate a class diagram that corresponds to the

Example Format:

following text description: A CreditCard class has the following properties: issuer, number,

1) Generate a class diagram that corresponds to the following text description: A CreditCard class has the following properties: issuer, number, and expiration date. It has the following public method: authorizePurchase(), which takes a float parameter (the amount), and returns a boolean. 2) Generate a class diagram that corresponds to the following text description: A Customer has the following properties: name, customerlD, billing address, shipping address, email, and one or more Credit Cards. Be sure to show the multiplicity. Since you've already fleshed out the CreditCard class above, you can just draw it as a single-compartment box in this diagram. 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, employee Count, that keeps track of the number employees it has. It also has a public method called fireAllToRaiseProfits() that takes an integer (daysLeft) and returns a float (profits). Company -employeeCount:int -name:String -street Address: String - zipcode: String -city.String +fire AllToRaiseProfits(daysLeftint): float employees Employee -name:String - number: String -job Title:String -payRate: String +perform GruntWork():void

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!