Homework 3, assigned FEB 6 (SEC 1), FEB 7 (SEC 3). due FEB 13 (SEC 1), FEB 14 (SEC 14) at 11:59 pm
This assignment requires you to write two programs

3a. Write a program that reads a social security number wriben as contiguous digits (for instance, 509435456), uses the charAt method to obtain each character and then prints each digit on a separate line followed by a colon and the digit printed the number of times equal to its value. Thus the output for 509435456 would be

 5:55555
 0:
 9:999999999
 4:4444
 3:333
 5:55555
 4:4444
 5:55555
 6:666666

Hint: Use a char variable, e.g., index, for the inner loop control variable and write the inner for loop as for(char index = '1'; index <= digit; index++) where digit is the char variable use to store the digit taken from the string.

3b. Write the program so that index is an int variable. This means you must convert the character assigned to digit to an int.

Use FEB 2 Prog3 for converting a char to a digit; FEB 6 Prog1 for a char driving a loop; Prog6 FEB 2 for nested loop.