Question: 5. (15 marks) Write a program named Text Converter that prompts the user for a line of text and converts it according to the following
5. (15 marks) Write a program named Text Converter that prompts the user for a line of text and converts it according to the following chart: Character L Converted to: 1 3 E 4 5 G T 7 B O 00 O Enter some text (q to quit): Harry Potter, Ron Weasley, Hermione Granger H4rry P0773r, Ron W34513y, H3rmion3 6r4n63r Enter some text (g to quit): Lord Voldemort and Nagini 10rd vold 3m0r7 4nd N46ini Enter some text (q to quit): Mario and Luigi M4rio 4nd lui6i Enter some text (a to quit): End of program Your program must use a loop and cannot use String methods replace() or replace All (not covered in class)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
