Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

> 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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions