Page 1 of 1

• Create three different text files to hold the following: Item ID, Item Name, Item Price. Use random values to fill the

Posted: Fri May 20, 2022 11:30 am
by answerhappygod
Create Three Different Text Files To Hold The Following Item Id Item Name Item Price Use Random Values To Fill The 1
Create Three Different Text Files To Hold The Following Item Id Item Name Item Price Use Random Values To Fill The 1 (45.41 KiB) Viewed 41 times
• 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 1D 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 Х х Item - Notepad File Edit Format View Help 202020 201202 213201 220123 itemName - Notepad File Edit Format View Help TV Phone PS4 AirPods itemPrice - Notepad File Edit Format View Help Ree 300 350 -9 100% Windows (CRLF UTF-8 100% Windows (CRLF) UTF-8 100% Windows (CRLF) UTF-8 • Output: ID Name 282828 TV 201202 Phone 213201 PS4 228123 AirPods Average- 212 Number of invalid prices- 1 Price 200.0 300.0 350.0 -9.0 Invalid