Question: Question 1: Produce the source code (C++) based on the Class Diagram below. please write the answer on a paper and take a picture >

Question 1: Produce the source code (C++) based on the Class Diagram below. please write the answer on a paper and take a picture

Question 1: Produce the source code (C++) based on the Class Diagram

> Product Regular - category: String + Regular(string, double, string) + displayDetails(): void + calcAftDisc(): double # name: string # price: double + Product(string, double) + getName(): string +displayDetails(): virtual void + calcAftDisc(): virtual double 0.. Promotion + Promotion(String, double) + calcDisc(): double + displayDetails(): void + calcAftDiscl): double 1. Staff Date - day, month, year: int - id, name: string - numPromos, numRegulars: int - numSales, qttyList[]; int - salesList[): Product + dispDate():void + readDate(): void Time + Staffl) + getStaffld(): string + getDateTime(): void + readinput(): void + addSales (Product,int): void + displayInfoStaff(): void + displayinfo Sales(): void |-hour, minute: int + dispTime():void + readTime(): 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!