سلام عليكم
اخواني الاعزاء
لدي مشروع عمل برنامج بلغه الجافا
و انا اشغلت بالدراسه عنه و ما بقى الا يوم واحد لتسليمه
يعني لازم يوم الاحد يكون مسلم
ياريت تساعدوني فيه و الله يجزاكم الف خييير
لان له نسبه كبيره في علاماتي النهائيه فياريت ما تبخلوا علي
تفاصيل المشروع هي كالتالي:
-------------------------------------
Project II
Write a menu-driven JAVA program that uses a one dimensional array to store information about items in a computer hardware store. The information required is: ID number of the item, item name, number of items in stock, and price. The program should display and execute the following options:
Read Data reads records from a file called “input.txt” and stores the information in a one dimensional array of objects. Computer hardware items can only be stored if their ID is unique. If the computer hardware ID already exists, the computer hardware item that has just been read, should be ignored, and an error message should be displayed “[Computer hardware item] has a duplicate ID as [Name]” where [Computer hardware item] is the name of the computer hardware item just read and [Name] is the computer hardware item with duplicate ID. Upon reading (and subsequently storing) the 'item name', you must remove all instances of under-scores (_) and replace them with blank spaces.
Display Items displays all computer hardware items. Display Items with an extra column that shows the computer hardware item price including Tax (Tax is calculated at 10% + Price)
Sort Computer Hardware List, sorts and displays records (ID, Item, Number of items, Price, Price + Tax) in descending order of price.
Search for Hardware Item asks the user to Search for Hardware Item enter a computer hardware item ID, searches all records for the ID entered by the user and displays an appropriate message as follows:
Item [iD] [computer hardware item] found
OR [iD] not found.
Write to File & Exit writes the contents of the one dimensional array of objects to the file "input.txt" (overwriting the old contents) and exits the program. Note: a computer hardware item name should be written to the file with underscores in place of blank spaces.
Note: [iD] is to be substituted with the computer hardware item ID i.e. “2222” and [computer hardware item] is to be substituted by the actual computer hardware item name i.e. “Hard Drive”.
Important:
The output should be displayed on the screen.
You can use any type of sorting you know
You must use a one dimensional array to store the objects.
You must write 5 separate methods (read, display, search, sort, and write).
You can assume that the maximum number of customer records will be 50.
There can be up to 50 records but we don’t know the exact number.
Format for Input Data FILE "input.txt" (Sample only)
1234 Hard Drive 21 87.99
2222 Flash Drive 7 38.00
1567 Motherboard 5 128.84
اتمنى انكم تساعدوني في عمله و لكم جزييل الشكر
تحياتي
