CSC211 LAB 7

  1. Please fill out this survey http://www.itd.depaul.edu/quickdata2/viewwebform.asp?id=4669
  2. Modify the hilo game so the user has at most 5 tries to guess the number.
  3. Modify the hilo game as follows
  4. Look over CalculatorA and CalculatorB. Get the code for CalculatorC.java at the course homepage. Study the code. Compile and run the program a couple of times. Add a case statement to include the modulus operator. See lecture notes 1 about the modulus operator.
  5. Add the following methods to ClassMethodTest.java.
    1. Write a method that returns the average of three integers. Here is what the method heading should look like.
    2. public static double averageOfThree(int num1, int num2, int num3)

    3. Write a method called isValid that will input an integer and return true or false whether or not that value is a valid score. A valid score, is a score between 0 and 100 (inclusive)
    4. Write a method called powersOfTwo that prints the first 10 powers of two. The method takes no parameters and doesn't return anything.