Car Racing Program
$10-30 USD
Paid on delivery
Problem to Solve
Create a class called “CarRacing”, which contains your main driver method, to simulate car
racing as described below..
1. Create an Array object called “cars” to store and manage a number of Car objects.
2. Car class consists of the Strings make, model and serialNumber; and the integers year and
score.
3. Write the appropriate program segments to carry out the following operations:
1. Run a race
Given the number of cars and duration of the competition, run a race. After the
competition, display the cars in descending (i.e., highest to lowest) order of their
scores.
Before running the race, you must create a correct number of car objects as
described below. (Make sure to use constant identifiers to represent each of the
literals such as minimum and maximum car years.)
a. The make of a car is composed of the text “Make” followed by 2 digits
representing the car’s respective order of creation, starting from 0. For
example, the make of the first car is “Make00” and the make of the 3rd car is
“Make02”.
b. The model of a car is composed of the text “Model” followed by 2 digits
representing the car’s respective order of creation, starting from 0. For
example, the model of the first car is “Model00” and the model of the 3rd car is
“Model02”.
X
Car Racing Description
Version: Refer to the version in the file name
Last printed 4/17/2018 7:06 PM Page 2 of 6
Filename: Car Racing [url removed, login to view]
c. The year of a car will be a random number, inclusively, between 1970 and
2018.
d. The serialNumber of a car is composed of the text “Sn” followed by 4 digits.
The last 4 digits will be a random number, inclusively, between 1000 and
2000.
e. The score of a car will be computed during the race. In each minute of the
race, the car travels some number of miles, which will be added to the score.
The number of miles a minute will be a random number, inclusively, between 1
and 4.
f. Use 1000 as the seed for the random number generator.
2. Update a score
Given a car’s serial number, change the score of the respective car.
3. Display all the cars
Display all the cars.
4. The result of your program must match the given sample input and output. Make sure you test
your program thoroughly, since I will execute your program on a different set of test data.
Use a package called “CarRacingPackage” to include the CarRacing and Car classes.
Please contact me for more specific instrustions
Project ID: #16843594
About the project
Awarded to:
This is easy. I can write you this program today. It's a console program, right? Do you need it in Java or JavaScript?
6 freelancers are bidding on average $55 for this job
I am a full time developer and have high skills in java, javafx, java swing and junit testing so I can complete this project. My price and time is negotiable. Let's discuss details via chat. I'll provide best servi More
Hi there, lots of experience teaching algorithms and OOP with multiple programming languages (including Java). Let me know any further details about this car task to see if I can help. Cheers!
Hi I am interested working on your project to create Car racing program, please send me the details. looking forward to work together with you Regards, Gusti
Greetings ! Myself Vishal Gajera. I have 5 yr. exp. in java technology. Also, I am "oracle certified professional java programmer" since 2014. I have good hands on grip over java technology(upto java-8) as backend p More