Page 1 of 1

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

Posted: Fri May 20, 2022 11:44 am
by answerhappygod
Create Three Different Text Files To Hold The Following Item Id Item Price Expiry Year Use Random Values To Fill The 1
Create Three Different Text Files To Hold The Following Item Id Item Price Expiry Year Use Random Values To Fill The 1 (75.31 KiB) Viewed 39 times
in java plz
Create three different text files to hold the following: Item ID, Item Price, Expiry year. 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. Check the validity of the year (it should not be older than 2022). Then calculate the total bill excluding the expired items. 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 Year - Notepad File Edit Format View Help 2023 2025 2020 2023 wwmn ItemPrice - Notepad File Edit Format View Help 10 15 32 21 ItemID - Notepad File Edit Format View Help 202020 201202 213201 220123 100% Windows (CRLF) UTF-8 100% Windows (CRLF) UTF-8 100% Windows (CRLF) UTF-8 Output: ID Price 202020 10.0 201202 15.0 213201 32.0 220123 21.0 Total= 46 Number of Expired prices- 1 Year 2023 2025 2020 2023 Expired!