Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
> 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(): voidStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started