- Create Three Different Text Files To Hold The Following Item Id Item Name Item Price Use Random Values To Fill The 1 (135.16 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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
. Create three different text files to hold the following: Item ID, Item Name, Item Price. Use random values to fill the
. 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: x Item Name - Notepad ItemPrice - Notepad Х ItemID - Notepad File Edit Format View Help 202020 201202 213201 220123 File Edit Format View Help TV Phone PS4 AirPods File Edit Format View Help keo 300 350 -9 100% Windows (CRLF) UTF-8 100% Windows (CRLF) UTF-8 100% Windows (CRLF) UTF-8 • Output: Phone ID Name 202020 TV 201202 213201 PS4 220123 AirPods Average= 212 Number of invalid prices= 1 Price 200.0 300.0 350.0 -9.0 Invalid