Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Notes 1- Deadline: Before the beginning of the next Lab. 2- Only submission on Blackboard. Implement the following class diagram that models Order Management System

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Notes 1- Deadline: Before the beginning of the next Lab. 2- Only submission on Blackboard. Implement the following class diagram that models Order Management System nt Customer shipped bocean Device Name Strin type snng 1- To class Order, add method total that returns total of all order's items prices. 2- Create a new class called Company that has array list of: customers, books, devices, orders, and add setterlgetter for each one of them. Add the following methods a) unShippedOrders: it returns array list of all orders that are not shipped (shipped field is false). b) totalBookSales: it returns total of book sales (money) in all orders c) customerOrder(int: it receives a customer id, and retums array list of all his orders. d) moreBooksO: it returns an array of customers who bought books and devices but spent more moncy on books than on devices. c) highest: it returns name of the customer who has the maximum sale in term of money) Gradin Implementing all classes according to the class diagram I Method total in Q 1 Method unShippedOrders0 Q2-a Method totalBookSales) Q2-b Method customerOrder(int) Q2-c Method moreBooksO: 92-d Method highest) Q2-c Total 0.5 0.5 0.5

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

Students also viewed these Databases questions

Question

List behaviors to improve effective leadership in meetings

Answered: 1 week ago