Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pls pls pls look carefully to the class diagram . object oriented modelling - Question 1: Produce the source code (C++) based on the Class

Pls pls pls look carefully to the class diagram. object oriented modelling - Question 1: Produce the source code (C++) based on the Class Diagram below. please write the answer on a paper and take a picture. ( i have done the code for the , pls hep me with the rest

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 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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions