Question: I need help writing this in JAVA OBJECTIVES: The project will give you the opportunity to review and practice on the following: -Types of Data
I need help writing this in JAVA
OBJECTIVES:
The project will give you the opportunity to review and practice on the following:
-Types of Data structure: Array Based Structure, Linked List structures, Hashed Data Structure or Binary Search
Tree Data structure
-Condition structure, loop structure
-read from keyboard
-working with the file:
-file: open, check file existing, read file, write to file
-class, object: constructor, mutator methods, accessor methods, toString and others, and how to access the class
members from client site
-display information on screen with requested format on numbers
-Handling input errors
-Write comments
REQUIREMENT:
Provide an application for a Warehouse that stores products for sale. The system keeps all the information of
products in the text file named as productInformation.txt
In the file productInformation.txt, the information of each type of products is writen on one line separated by a
comma (,) that includes itemId (String), model (String), name (String), unitPrice (double), quantity(integer), details (String), For example:
1001655218, ES95BR3065SWD6, Light Bulb, 29.97, 25, EcoSmart 65W Equivalent Soft White BR30 Dimmable CEC LED Light Bulb (6-Pack)
The application should allow users to do the following tasks and only terminate when users want to exit
1.Add One new item
2.Add more existing item
3.Sale item
4.Remove One Item
5.Search item by itemId
6.Search items by name
7.Show all items
Add One New Item:
(Insert) This task helps to insert one new item type to warehouse
-Display messages to ask and read information of one item from the keyboard then insert it to the data structure
Add more existing items:(update:increase quantity)
-Display messages to ask and read itemId from the keyboard, then use the itemId to fetch the information if this existing item, modify the field quantity then update the item to the data structure
Sale Items: (update:reduce quantity)
Remove One Item:(delete) This task helps to delete item type from the data structure
Search Item by ItemID:This task helps to search the item type with the key search is itemId, print out the item
*************************************
************************************
***
Item name: Light Bulbs
Item ID:1001655218
Model:ES95BR3065SWD6
Product name: Light Bulb
Unit price: $29.97
Count: 25
Detail: EcoSmart 65W Equivalent Soft White BR30 Dimmable CEC LED Light Bulb (6-Pack)
************************************
**************
*
*
*
*
*
*
*
*
*
*
************
****
Search Items by the name:This task helps to search theitems with the key search is the name of the item (for example Light Bulb, print out the list of all items having the same name but different itemId or model
IMPORTANT HINTS:-When the application starts, FIRST, you have to open the file productInformation.txt For each line, split information, create a node then insert to the data structure.
-During the application, all the tasks provided from the list only process in the data structure
-LAST: before terminating the application, open the file productInformation.txt and write all the nodes in the data structure back to the file, save them in database for next use.
HOW TO DO THE PROJECT
-Read the requirement to understand what the requirement asks for
-Determine how many data type classes we need,, what data structure you want to choose to work for this project and add the driver class that include main() named SP2017 PROJECT_WarehouseService_yourLastName)
Notes:
-Provide the UML of all data type classes
-Procide the pseudo
-code of main()
-You can choose any one of data structure type that we learned from the course to use for your project
-During the process of the application SP2017 PROJECT_WarehouseService_yourLastName, the tasks such as, add,remove or update, etc. on the items are only happened in the data structure; you dont need to update output file
-When the users select the Exit task, before terminating the program, write all the information of items on the data structure back to the file itemsList_yourLastName.txt to save for future use.
HOW TO TURN IN
-UML of each data type and Pseudo code of your project in word document
-All the source code of data type classes (.java files) and all their .class files
-File productInformation.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
