Question: Use Java programming language Problem Definition: Write a Java application that allows its user to create 2D shapes and manipulate them. Detailed Requirements First, your

Use Java programming language

Use Java programming language Problem Definition: Write a Java application that allows

its user to create 2D shapes and manipulate them. Detailed Requirements First,

Problem Definition: Write a Java application that allows its user to create 2D shapes and manipulate them. Detailed Requirements First, your program should ask the user if he/she wants to load previous drawing work. If the user answers by yes, the previous drawing should be loaded from the text file drawing.txt saved during the last session and displayed; otherwise, the users starts with a blank canvas (drawing area) The program should then display the following menu Please, type: 1. To draw a new 2D shape 2. To remove an existing shape 3. To modify an existing shape 4. To quit If the user types 1, your program should ask for the type of the 2D shape to draw (line, rectangle, oval, arc, or polygon). Then it should get from the user all needed information for drawing the shape (color, filled or not, position, etc.) and save them in a list of drawings to be used by paint) when drawing existing 2D shapes If the user types 2, your program should ask for the ID of the shape to be removed and remove it. The ID of a shape is the order in which it has been created. If the user types 3, your program should ask for the ID of the shape to be modified and for the kind of modification to be done (change shape, change color, change position, change fill status, make the shape invisible/visible, etc.) then it executes the user request. If the user types 4, the program should ask the user if he/she would like to save the final drawing in drawing.txt, execute the user request and stop Problem Definition: Write a Java application that allows its user to create 2D shapes and manipulate them. Detailed Requirements First, your program should ask the user if he/she wants to load previous drawing work. If the user answers by yes, the previous drawing should be loaded from the text file drawing.txt saved during the last session and displayed; otherwise, the users starts with a blank canvas (drawing area) The program should then display the following menu Please, type: 1. To draw a new 2D shape 2. To remove an existing shape 3. To modify an existing shape 4. To quit If the user types 1, your program should ask for the type of the 2D shape to draw (line, rectangle, oval, arc, or polygon). Then it should get from the user all needed information for drawing the shape (color, filled or not, position, etc.) and save them in a list of drawings to be used by paint) when drawing existing 2D shapes If the user types 2, your program should ask for the ID of the shape to be removed and remove it. The ID of a shape is the order in which it has been created. If the user types 3, your program should ask for the ID of the shape to be modified and for the kind of modification to be done (change shape, change color, change position, change fill status, make the shape invisible/visible, etc.) then it executes the user request. If the user types 4, the program should ask the user if he/she would like to save the final drawing in drawing.txt, execute the user request and stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!