Please send me a screen shot of the code from eclipse ide program and a written copy of the code thank u
Create three different text files to hold the following: Item ID. Item Name, Item Price. Use random values to fill the files. • Write a complete java program to read the text files and store the values in 10 arrays. • Make sure to handle any errors in case the files were not found. • Calculate the average price and find how many prices were invalid (0 or less). • Print a report to show all information. • Submit your answer as a word document, along with the created text files. Example: Text Files:
• Example: Text Files: - х ItemID - Notepad File Edit Format View Help 202020 201202 213201 220123 Item Name. Notepad File Edit Format View Help TV Phone PS4 AirPods ItemPrice - Notepad File Edit Format View Help pee 300 350 -9 UTF-8 100% Windows (CRLF) UTF-8 100% Windows (CRLF) UTF-8 100% Windows (CRLF) • Output: ID Name 202020 TV 201202 Phone 213201 220123 AirPods Average- 212 Number of invalid prices= 1 Price 200.0 300.0 350.0 -9.0 PS4 Invalid
Please send me a screen shot of the code from eclipse ide program and a written copy of the code thank u
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am