Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Some coffee shop wants to implement a system to allow its registered Customers to view their purchases. Initially, the system is required to allow

JAVA

Some coffee shop wants to implement a system to allow its registered Customers to view their purchases. Initially, the system is required to allow its Salesperson to view and create sales records. Later, the system will also be required to allow the ShopManager to view, create and update sales records. Answer the questions below:

Using UML class diagram, to represent the objects of above system.

Write source codes in Java programming language to define classes required to create the Customer and Salesperson objects while maintaining the underlying principles of inheritance. Assume Customer, Salesperson and ShopManager have employeeID, empoyeeName and contactDetails attributes in common. Note any assumptions that you may have made when writing the source codes. Note: You can implement the methods to view, create and update sales records by simply displaying different messages. Demonstrate how a Salesperson can create new sales records and how a Salesperson and Customer can view the existing sales records. Note any assumptions that you may have made when writing the program.

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions