1. Write a program that determines the largest 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 largest number was 8.

  2. Given the following variable declarations and assignments:

    int i1, i2, i3;
    double d1, d2, d3;
    i1 = 4;
    i2 = 43;
    i3 = 7;
    d1 = -2.5;
    d2 = 3.8;
    d3 = -4.0;

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

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

  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?