1. Write a while loop that verifies that teh user enters a positive integer value.
2. Write a do loop that verifies that teh user enters an even integer value.
3. Write a for loop to print the odd numbers from 1 to 99 (inclusive).
4. Write a for loop to print the multiples of 3 from 300 down to 3.
5. Write a method called alarm that prints the string "Alarm!" multiple times on
seperate lines. The method should accept an integer parameter that
specifies how many times the string is printed. Print an error message if
the parameter is less than 1.
6. Write a method called sumRange that accepts two integers parameters that
represent a range. Issue an error message and return zero if the second
parameter is less than the first. Otherwise, the method should return the
sum of integers in that range (inclusive).
2. Write a do loop that verifies that teh user enters an even integer value.
3. Write a for loop to print the odd numbers from 1 to 99 (inclusive).
4. Write a for loop to print the multiples of 3 from 300 down to 3.
5. Write a method called alarm that prints the string "Alarm!" multiple times on
seperate lines. The method should accept an integer parameter that
specifies how many times the string is printed. Print an error message if
the parameter is less than 1.
6. Write a method called sumRange that accepts two integers parameters that
represent a range. Issue an error message and return zero if the second
parameter is less than the first. Otherwise, the method should return the
sum of integers in that range (inclusive).
Comment