Problem1: File I/O
Read the given file (HW5P1.txt), and output the contents to another file output.txt with the following modifications. Remove any 'a' or 'A' characters. Replace all newlines ('n') with tabs ('t').
Problem2: Recursion and Iteration
Prompt the user for an integer:
(i) Use recursion to convert that integer to hexadecimal form. Be sure to identify the base case and the recursive case.
(ii) Use iteration to convert that integer to hexadecimal form.
If a negative integer is entered, an error message should be displayed.
HW5P1.txt
The quick brown fox jumps over a lazy dog. A cat ran away as the fox came around the bend.
Further down the road, a student was ta-
king an exam for his CS2433 class.