Question: In Java 3 . Task Create the static method generate AlphaNumericCode that accepts three parameters Number of lines in the file. Number of four digit


3 . Task Create the static method generate AlphaNumericCode that accepts three parameters Number of lines in the file. Number of four digit alphanumeric codes on each line. Name of the file to write the codes to. The method randomly generates a file of alphanumeric code as shown in the example below. HW. de umbes 1 GA27 HH65 QW67 CY30 Z331 IM73 VB22 AU48 CC77 HQ25 2 PA12 DT25 IQ28 RU35 YZ56 YK64 KY45 TR35 US15 TD84 3 WM34 RH36 VP81 ZD23 YM27 DM61 IKOO QE47 PT72 FG62 4 ZS88 IA03 VAO3 PF54 SQ71 SH33 JM34 NL88 VN84 RI68 5 KD30 CD48 EV27 AY51 0986 VI37 MA27 YR16 MK81 WS48 6 VM77 DZ41 KP77 3781 YT46 DC27 JL28 BW13 EB88 VE15 7 LT37 PQ88 IA60 NN70 BR58 IT76 WM11 CP81 RR36 BE26 8 KYO2 BD12 1041 MK42 CD68 FM66 SH36 DZ88 L784 ZG13 9 LC17 BG74 PH27 YF 74 SA78 PD71 RJ88 QG83 QR70 T286 100A52 GF02 AB16 TS20 CK47 0J23 CH50 GK16 RW22 KG25 Task 4 Create the static method extractNumberslettersToFile that accepts three parameters Name of the code file. Name of the file that will contains only the numbers. Name of the file that will contains only the letters. The method reads the code file and produces two additional files as shown in the example below. 1122 IGA27 10165 067 CY18 2331 1673 V122 A CC27 925 2 PA12 0125 1028 RUS YES Y 64 KYAS TRUS USIS TO 3134 36 VP 2023 YM27 M61 TKOO QF47 PT72 662 AZ LAD VAD PFS4 5071 SH33 134 NES VN84 R168 SKD CLS EV27 AVS1 086 VE 37 A2Z VR16 R1 W548 77 0241 77 301 YT46 DC27 288 VE 15 7 LT37 POGB IAGO NO BASS 1176031 CB 36 BE 26 KV2 B012 1041 MA COR FREE 536 DZBB L284 2613 SUCIT 1674 PQ7Y44 SAYS P7 RB 068) OR70 7206 10042 GEO2 AB16 1520 CK47 023 CHSO 16 WW22 KGZS 17. > 312 556644 1343 12:21 20 \\AlphaNumbers 2011 67741 73286703 1111 10 2 12 4 14 20102***41 72427742871370 1052 21628 47215016222 The Sum of the Naters in this file 70 16 AMHOWCY IN UCECHO PADTIQRVYZYK TRUST RRRPZO DEPT SIA VAPE LVR 1 OCDEVAYOOV YRHES WRDIEPOZYTDCLONE LPQLANNRITUNCPR SKYB OTOMKCOERENDEL CRGPHYFSAPORU 100 AGFASTSCROICHOK 1. There are I INN File 12 There are this file Count only H, G, and Ls \\Alphaletters \\AlphaCode Class Structure 5 Your Eclipse Project filepath goes here 19 public class LocklearHw_5 11 12 public static String DIR - "C:\Users\\msgth\\Spring2022\\Locklear WS\src\\locklear \MAIN" public static String[] Letters - ("A", "B", "C", ,"G", "H","I","9","K", "L","M", "N","0","P","0", "R","S","T", "V" "Y", "Z"}; public static String[] digits = {"", "1"," "6","7","8","9"); All your code goes here public static void main(String[] args) throws IOException { generateAlphaNumericCode(10,10, AlphaCode"); extract NumbersLettersToFile("Alphacode", "AlphaNumbers", "Alphaletters"); > 13 14 15 16 23 All methods that you create must only use ID arrays of type int, String or char...you may not use multidimensional arrays or any other data structure (ArrayList, List, Maps, etc.) All calculated values and reading and writing of files must be done inside a loop. You must make use of the letters and digits arrays in one or more of your methods. The main method of your class must look exactly as shown above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
