Question: Write an object-oriented Java program that implements an inventory management system. You will need to create three separate classes Main, UserManagement, InventoryManagement. Following methods can
Write an object-oriented Java program that implements an inventory management system. You will need to create three separate classes Main, UserManagement, InventoryManagement. Following methods can be used to design your program. Additional methods are needed to complete the project.
Authentication: this method should prompt to enter username/password and authenticate users for logging into the InventoryManager. Username/password should be stored in a file with password encrypted and the method getDataFromFile can be used to read the file. In case the authentication fails, system should display appropriate error message. Otherwise, system should call the method do display activity choices. This method should be part of the Main class.
SelectActivity this method should display a set of menu options to conduct daily businesses after successful authentication. This method also accepts user input for selection of the activity and calls appropriate method based on user selection. This method should be part of the Main class. The activity choices must include the following options at a minimum:
User Management
Inventory Management
Generate Report
Logout
UserManagementChoices: This method should be called if user select option 1 from the above menu. This method should display a list of options and accept user selected input. This method should be part of the UserManagement class. The menu must include the following choices at a minimum:
Display All Users
Add New User
Update Existing User
Delete Existing User
InventoryManagementChoices: This method should be called if user select option 2 from the SelectActivity menu. This method should display a list of options and accept user selected input. This method should be part of the InventoryManagement class. The menu must include the following choices at a minimum:
Display All Inventory
Add New Inventory
Update Existing Inventory
Delete Existing Inventory
GenerateReport: This method should be called if user select option 3 from the SelectActivity menu. This method should prompt user for a date to display report. If no report is available for that date, system should display appropriate message. Otherwise, system should display all activities from that date. Each activity in the report should include a) the date of the activity, b) the type of activity (ex: new inventory added), and c) the user performed the activity. This method should be part of the Main class.
main: this method should be used to call other methods as needed.
You need to write all other supporting methods to perform all operations. This includes reading from file and writing to file.
All user passwords must be encrypted. Feel free to write your own encryption method.
Logout should display a thank you message and exit the program.
You will be dealing with at least three separate files: User file, Inventory file, and Report file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
