1. Write a program that determines the smallest of a set of numbers.  The user will enter numbers until they enter 0.  A sample run could look like this:

    Number? 6
    Number? 8
    Number? 2
    Number? 7
    Number? 4
    Number? 0
    The smallest number was 2.

  2. Given the following variable declarations and assignments:

    int i1, i2, i3;
    double d1, d2, d3;
    i1 = 13;
    i2 = 57;
    i3 = -4;
    d1 = 1.2;
    d2 = 5.7;
    d3 = -5.0;

    evaluate the following expressions (make sure your answers are in the correct data type):

    1. (int) d2 * d3
    2. (int) (d1 + d3)
    3. (int) d1 + d3
    4. d3 * i3
    5. i2 / 10
    6. i2 % 10
    7. i1 / i3
    8. i1 % i3
    9. i1 + i2 / d2
    10. (double) (i1 / i3) - (double) i1 / i3

  3. These numbers are in binary or decimal.  Convert to the other number system.

  4. This 4-byte binary number represents "7349."  Which data type is it (int, float, or char(s))?  How do you know?