Complete the program below so that it prompts the user for an angle in degrees, and prints out the quadrant in which the angle is located, represented by Roman numerals, as shown in the following figure.

Notice that the value of the angle starts at zero degrees at the rightmost point of the circle, moving counterclockwise around the circle as the number of degrees grows. For instance, if the input angle has 100 degrees, it is in quadrant II, while an angle of 300 degrees is in quadrant IV and an angle of 45 degrees is in quadrant I. Each quadrant contains 90 degrees and starts at a multiple of 90. For example, 89 degrees is in quadrant I and 90 degrees is in quadrant II.

All the input angle values must be integers between 0 and 359. If the value of an angle falls outside this range, the word "Error" should be printed, and the program terminated.

Complete the following file:

Quadrants.java

import java.util.Scanner; /** A program that reads in an angle between 0 and 359, and prints out which quadrant it is in. For example, the input of 20 is in quadrant I, and similarly, the input of 330 is in quadrant IV. Use error validation to print out an error message if an input angle is not between 0 and 359 degrees. */ public class Quadrants { public static void main (String[] args) { // Display prompt for degrees of angle System.out.println("Please enter the number of degrees of angle: "); // Read angle in degrees Scanner in = new Scanner(System.in); int angle = in.nextInt(); String quadrant; // Determine and print out the quadrant for the angle as "I", "II", "III", or // "IV", or print the word "Error" // Your work here System.out.println(quadrant); } }