[Solved]Create Program Described Submit Java File 1 Ask User Title Width Height Window Want 2 Gett Q37164658
using java
here is the code has been provided.
Create the program described below and submit as a java file. 1. Ask the user for the title, the width, and the height of the window they want. 2. After getting the required information, create the actual window by using the Detector constructor (example given in the API link). 3. Ask the user what shape they want to add 4. Ask the user for the location, and size of the shape 5. After you have received all of this information, don’t forget to actually create and add the shape by using the addShape) method. Notice that each shape will require different types of information (e.g. rectangle requires width and height, while circle needs radius). 6. Ask the user if they want to add a point 1. If they choose yes, then get the point location from them. Once you get the required information, create the point using the addPoint0 method. 2. Tell the user whether the point is in the shape and display this as a message. (Hint: Look for a useful method in the API link) 7. Remove the shapes (Hint: Look for a method in the API link) 8. Now loop everything! Keep asking the user what shape they want to add until the user chooses to exit 9. Display “Done ” once they choose to exit 1. Do not forget the smiley face 2. You can use nameOfDetector.exit); to close the window for you otherwise you need to click the x close button to actually end the program import java.util.Scanner; 2 public class Game 3e public static void main(Stringl] args) ( //Variables int play; 7 8 9 //Asks the user if they want to play the moving target game. System.out.println(“Do you want to play Moving Target? ” + InType 1 if you want to play and 0 if you don’t.”; //Declare a scanner object Scanner input new Scanner (System.in); .2 .3 L4 し5 //Stores the user input in the variable. play play – input.nextInt(); //Creates a window with the specified title, width and height Detector window#new Detector( “Moving Target”, 500, 500); 18 L9 Show transcribed image text Create the program described below and submit as a java file. 1. Ask the user for the title, the width, and the height of the window they want. 2. After getting the required information, create the actual window by using the Detector constructor (example given in the API link). 3. Ask the user what shape they want to add 4. Ask the user for the location, and size of the shape 5. After you have received all of this information, don’t forget to actually create and add the shape by using the addShape) method. Notice that each shape will require different types of information (e.g. rectangle requires width and height, while circle needs radius). 6. Ask the user if they want to add a point 1. If they choose yes, then get the point location from them. Once you get the required information, create the point using the addPoint0 method. 2. Tell the user whether the point is in the shape and display this as a message. (Hint: Look for a useful method in the API link) 7. Remove the shapes (Hint: Look for a method in the API link) 8. Now loop everything! Keep asking the user what shape they want to add until the user chooses to exit 9. Display “Done ” once they choose to exit 1. Do not forget the smiley face 2. You can use nameOfDetector.exit); to close the window for you otherwise you need to click the x close button to actually end the program
import java.util.Scanner; 2 public class Game 3e public static void main(Stringl] args) ( //Variables int play; 7 8 9 //Asks the user if they want to play the moving target game. System.out.println(“Do you want to play Moving Target? ” + InType 1 if you want to play and 0 if you don’t.”; //Declare a scanner object Scanner input new Scanner (System.in); .2 .3 L4 し5 //Stores the user input in the variable. play play – input.nextInt(); //Creates a window with the specified title, width and height Detector window#new Detector( “Moving Target”, 500, 500); 18 L9
Expert Answer
Answer to Create the program described below and submit as a java file. 1. Ask the user for the title, the width, and the height o… . . .
OR

