BPJ Quiz 11-12 A

  1. Print the numbers from 99 to 50, going down by one each time.

  2. There are four perfect squares between 10 and 50. They are 16, 25, 36, and 49. Their average is 31.5.

    Find the average of all the perfect squares between 99 and 5678. Print it.

  1. Pick an integer n in your code (“hard code” it… once we know random then we will pick a random number). Create a Scanner that must be called river for full credit… to read input from the keyboard. Keep asking “Guess?” until they type in the number you picked. (Then your program ends.)

    Example transcript when n=111:

     Guess?
     10
     Guess?
     100
     Guess?
     111
    
Last modified August 18, 2023: 2022-2023 End State (7352e87)