When you thoroughly understand it, write a program that does exactly what this friendly program does. Be sure to test your program and mine with a variety of inputs to be sure they do the same thing in all cases.
Use If...Then, not If...Then...Else for this assignment.
You might find it helpful to make a flowchart of the program before writing it.
Turn in a screen shot of the program executing and its listing.