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