( --> )
A Typical First Programming Challenge:
Extreme Difference of a Triple
Objectives
- To make sure your are operationally competent
at writing and running a Java program.
- To provide you with a simple opportunity to
compose a program of a few very simple constructs,
including variable declarations, expressions
involving int objects, message sends to the IO
object, the assignment operator, and simple statement
selection.
The Problem
Prompt the user to enter three integers. Read
the three integers. Compute and print the
difference between the largest and the smallest
number read. Do so in the context of the following
restrictions:
- Use only "pure if" statements of "pure
ifelse" statements for selection.
- Use only "simple tests" in the selection
statements.