Answer
- You might want to do output so that it lines up in columns. Right
now you don't have much control over the spacing in a line of output.
- You might want to do input so that you can ignore certain
characters in the input. For example, imagine trying to read a social
security number entered by the user as ``383-38-2839''. You might
like to read the digits and ignore the hyphens.
- You might like to perform output to a file, instead of to the
display. Then the results of your program would be safely saved away.
- You might like to perform input from a file, instead of from the
keyboard.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu