Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Also draw the UML diagram and write a conclusion on the project please i need it as soon as possible ok its fine without the
Also draw the UML diagram and write a conclusion on the project
please i need it as soon as possible
ok its fine without the uml diagram just write the code and write the conclusion for me please
Problem Description: Implement a Java Application that implements a MAN driving a CAR. To solve this project you have to: 1. Create a CAR class with: a. Attributes: MAKE THEM PRIVATE!!!!) i. engineOn: Boolean ii. fuel Tank: float iii. speed: float iv. acceleration: float V. deceleration : float vi. owner : string b. Methods: you have to provide the corresponding methods to change the attributes' value (MAKE THEM PUBLIC). Implement the corresponding constructor!!!! 2. Create a MAN class with: a. Attributes : 1. name: string 11. surname: string iii. address. string iv. myCar: CAR b. Methods: you have to provide the corresponding methods to change the attributes' value (MAKE THEM PUBLIC). implement the corresponding constructor!!!!! Create a class GARAGE that is executing the following operations: a. Creates car object b. Creates man object that owns the car c. Let's man object driving the car....that means he can: i. Switch the engine ON and OFF ii. He can refuel the car iii. He can make the car accelerating iv. He can make the car slowing down V. He can stop the car Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started