This report details the development of an Electronic Inventory Shop system, a Java-based application designed to categorize sales based on customer age. The project utilizes Java Swing to create a custom graphical user interface (GUI) that sorts purchases into two distinct categories: a "Kids List" for children aged 11 or younger and an "Items List" for older customers. Key features include:
Age-Based Categorization: Logic that automatically sorts products like toy balls into the Kids List and more advanced items like remote-controlled cars into the Items List.
Custom GUI Design: A manually structured interface using JPanel and other Swing components to handle user inputs effectively.
Inventory Management: A simplified retail system focused on tracking age-appropriate product sales and purchasing patterns.
Educational Foundation: A demonstration of applying conditional logic and GUI design to solve practical retail management problems.
Background
In a retail environment, managing inventory effectively often requires categorizing sales based on customer demographics to better understand purchasing patterns and ensure age-appropriate product distribution. For an electronics shop, distinguishing between items bought by children and those bought by older customers is essential for organizing stock and tailoring marketing strategies. Manual tracking of these demographics can be inefficient and prone to error, necessitating a digital solution to streamline the process.
Problem
Current inventory methods at the shop do not automatically differentiate between products based on the buyer's age, leading to a disorganized sales record where simple toys and advanced electronics are grouped together. There is a need for a software-based system that can capture user input and apply conditional logic to sort items into distinct categories automatically.
Goal
The objective is to develop a Java-based Electronic Inventory Shop application using Java Swing to create a user-friendly graphical interface. The system must:
Capture User Input: Allow the entry of item details and the age of the customer.
Apply Conditional Logic: Automatically categorize purchases based on age; specifically, items bought by children aged 11 or younger must be placed in a "Kids List".
Categorize Advanced Items: Place items bought by customers older than 11 into a separate "Items List" with additional specifications.
Display Results: Provide a clear visual output (via JPanel) that shows the organized inventory, facilitating easier tracking and management of age-appropriate sales.