A Java program for managing a factory that produces various products, such as bread, waffles, and spaghetti, and sells them to kids. The program allows registering prize tickets, creating a new Oompa Loompa song, registering beings, registering products, ruffling tickets, registering sales, and listing winners.
- Java Development Kit (JDK)
- Clone the project or download and extract the ZIP file.
- Navigate to the project directory in the command line.
- Compile the program by entering the following command:
javac factory/main/Main.java
- Run the program by entering the following command:
java factory.main.Main
After running the program, you will see the main menu with different options:
Press:
0 - display the menu
1 - register prize tickets
2 - list all prize tickets
3 - list only raffled tickets
4 - create a new oompa loompa song
5 - register beings
6 - register products
7 - ruffle tickets
8 - register sale
9 - list winners
10 - quit
Choose any option by typing the corresponding number and pressing Enter. Follow the prompts displayed to input the required values.