Skip to content

Commit 0f98ed7

Browse files
authored
Update README.md
1 parent 5731e43 commit 0f98ed7

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

README.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,47 @@
1-
# vending-machine-simulation-using-java
1+
# Vending Machine Simulation
2+
3+
This Java program simulates a vending machine, allowing users to select items, deposit money, receive change, and view sales statistics. The program is implemented using structured programming paradigms without utilizing object-oriented concepts.
4+
5+
## Program Overview
6+
7+
The program is structured around the main method, which orchestrates the vending machine operations. Functionality is modularized into separate functions to enhance clarity and maintainability. User interaction is facilitated through console input and output.
8+
9+
## Functionality
10+
11+
- **Vending Machine Operations**: Users can activate the vending machine, select items from the menu, deposit money, and receive products and change.
12+
- **Admin Mode**: Authorized personnel can access statistics by entering a PIN code. This mode displays total income and the percentage of sold products.
13+
14+
## Screenshots
15+
16+
### Menu and Prices + Customer Selection + Customer Total
17+
18+
![Menu and Selection](1.png)
19+
20+
*Description: This image shows the vending machine menu with prices, a customer making a selection, and the total amount.*
21+
22+
### Change Returned After Misusing Deposit
23+
24+
![Change Returned](2.png)
25+
26+
*Description: This image demonstrates the change returned after misusing the deposit from the total.*
27+
28+
### Admin and Machine Sales Statistics
29+
30+
![Admin and Statistics](3.png)
31+
32+
*Description: This image displays the admin mode and machine sales statistics.*
33+
34+
## Usage
35+
36+
1. Run the program.
37+
2. Input "start" to activate the vending machine.
38+
3. Follow the prompts to make selections and complete transactions as a customer.
39+
4. Access admin mode by inputting "99" and entering the correct PIN code (default: 12345) to view statistics.
40+
41+
## Contribution
42+
43+
Contributions to improve the program's functionality or efficiency are welcome. Fork the repository, make changes, and submit a pull request.
44+
45+
## License
46+
47+
This program is licensed under the [MIT License](LICENSE).

0 commit comments

Comments
 (0)