Question: ( use java and eclipse software to write please ) Lab 0 8 String and OOP Q 1 . String Create a project with the

(use java and eclipse software to write please)
Lab 08 String and OOP
Q1. String
Create a project with the name FindCharFromWord_yourID that inputs series of words, separated with 'space' and output ALL words that contain a specific character (not case sensitive).
Console
FindCharFromWords_yourID [Java Application] C:Program FilesUava\jdk-11.0.12\binljavaw.exe (Sep 25,2022,9:40:01 PM -
Enter a sentence (separated with space)
This is the course of AST10106, we are learning very happy.
What Character you want to find? s
The found result is: THIS IS COURSE AST10106,
Q2. Class and Object
Review the Topic 10 of OOP to create a class named 'Car' while the followings attributes and behaviours.
1. Create the Class car and implement the attributes and behaviours as follows:
a. When construct an car object, it set the initial speed to 50 kmph
b. Set the license with a given ID No
c. Accelerate(): add the speed with a random value in the range of [10-20], while the car2 will double the value.
d. Brake: decrease the speed with a random value in the range of [10-20]
Write a test driver that
2. Create three objects Car1, Car2 and Car3 with the data in the diagram
3. Assume these cars are racing of a distant, in which all cars are accelerate 30 times and brake 30 times. Display the final speed of every car and find out which car has the highest final speed.
NOTE for Q1
The interactions and example shown in Q1 is just for reference. Your program needs to capable to handle any input string and the found character. To reference lecture notes, your program needs to provide detail explanation on the codes that is able to show your understanding.
NOTE for Q2
You need to design the appropriate messages and interactions to show your program works, such as display the speed for every accelerate and brake.
Submission:
Submit the project on both Q1 and Q2.
End of Lab 8
( use java and eclipse software to write please )

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 Programming Questions!