Question: JAVA Problem (don't write in python, or C++ o other language, only JAVA accepted) Write a graphical application that contains a class named RV whose

JAVA Problem (don't write in python, or C++ o other language, only JAVA accepted)

Write a graphical application that contains a class named RV whose objects are the recreational vehicle designed and digitized as described in Knowledge Exercises 20 and 21 (you can design your version as well. Simple car shape is will be appreciated. The classs private data members should be the vehicles body color and (x, y) location.

a) Give the UML diagram for the class. It should include a three-parameter constructor, a toString method, a method to input the values of all of an objects data members, and a show method to draw the RV at its current (x, y) location.

b) Progressively implement and test the RV class by adding a method and verifying it before adding the next method. A good order to add the methods to the class is the three-parameter constructor, followed by the toString method, the show method, and finally the inputmethod. The client code should create an RV object using the three-parameter constructor to test all of the methods as they are progressively added to the class.

c) After all of the methods are verified, comment out the test code in the client application and add two RV instances to the program whose location and color are passed to the three-parameter constructor. Output these vehicles to the system console and the game board and then output them again after the user inputs a new color and a new (x, y) location for each vehicle.

>>Please test it in Replit.com, don't get the code from chatgpt and send me I know to do it in chatGPT, but it's not giving right answer. So if you can do it take this seriously and solve it on your own. After you complete this test it on online IDE in replit.com. If you can share the replit.com link that would be great. I should see 2 cars in one frame, not two frames with one car on each or in one frame one car. I need two cars in one plane and they should change color and location after input. If you don't understand don't do this asignment. Let someone with skills do it. You won't get thumbs up if the result not met requirement.

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!