Change the following pseudo-code to your favorite language:
The only tricky part is the number of leading zeros, but in a lot of languages it's built into the integer-to-string converter. Other than that, it's Programming 101.Code:Variable Integer Counter; Initialize Counter = 0; Variable String Num; Initialize Num ="000"; Variable String Name; Initialize Name = "JOHN"; While Counter < 2001 Name = Name + Num + CR; Write(File) = Name; Counter = Counter + 1 Num = Integer_to_String_Func(Counter);




