Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Yoyo Ent sells its products through promoters who are given monthly commissions based on their sales. Currently, calculation of total sales made by every promoter
Yoyo Ent sells its products through promoters who are given monthly commissions based on their sales. Currently, calculation of total sales made by every promoter is done at every end of the month. You are hired to upgrade the calculation system. The business rules are as follows: i A promoter is described with id, name, address, email and phone. ii. A promoter manages one sale at a time. 111. A sale is described with id, date and description. iv. A sale can consist of more than one product V. A product is described with id, name, category, and price. Based on this scenario answer the following questions: a) Propose class names with attributes for the scenario above. The promoter id, date, and price cannot be accessed by other classes. (5 marks) b) Design a complete UML class diagram for the scenario. The diagram must include constructor, getter methods and setter methods. (5 marks) c c) The manager wants to expand the Sale into Web-based Sale and App-based Sale. Web- based Sale is a Sale which conducted online. Furthermore, App-based Sale is a Web- based Sale conducted on different platforms. The attributes for the Web-based Sale are online URL and transaction id. Whereas the attribute for the App-based Sale is platform. The platform might be AliBaba, Shoppee, Lazada and others. All the attributes can only be accessed by its class. Based on this scenario, design UML class diagram to expand the class Sale
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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