Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1: Create an inventory program that tracks your inventory and sales. The program also needs to write/read order and customer information to a text

Part 1:

Create an inventory program that tracks your inventory and sales. The program also needs to write/read order and customer information to a text file. Also, the types of cookies can be part of the program. Maybe creating a Gui that enables the individual to choose the type of cookie each customer orders since only 3 types of cookies are offered. The program also needs to be able to loop back to the beginning for inputting customer and order information more effectively. Using Java Programming!

Part 2:

Her customers want to be notified when her inventory changes so they can potentially order more cookies. They can choose to stop their subscription at any time. They can subscribe to each cookie type independently. You as the designer, can choose how to implement this.

Write the UML diagram showing this observer pattern.

Follow the Steps:

Part 1: Composition

It is Girl Scout cookie time. Your neighbors daughter is really into it. Her troop has big plans. She is selling thin mints, samosas, and dosidos. Her Girl Scout leader delivers her cookies. She then sells them and delivers them to her customers.

She is keeping track of her inventory, her commands and her customer base (name, phone, address, customer ID). For now, we will not track cash.

Design your classes and a main menu to reflect this scenario.

The leader does not have to be defined.

Requirements:

Use class composition.

Use at least one class inheritance. (It needs to make sense)

The menu should allow the user to enter a new command, enter a new customer, deliver cookies to a customer, print inventory.

Using Java Programming for BOTH

Part 1 is same as Part 1 Composition.

Part 2 Write the UML diagram showing this observer pattern.

PLEASE TYPE THE PROGRAM OR POST CLEAR SCREENSHOTS OF THE PROGRAM

AND UML DIAGRAM

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_2

Step: 3

blur-text-image_3

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions