Write a Java RMI program (similar to the distributed whiteboard studied in class) that implements an application that lets people submit information about the race(s) they've run to a server.
Information about a race includes the race's name, the location, the year, the distance of the race in numbers of kilometers, the time taken to run the race (in minutes), and a personal satisfaction for the race (out of 10).
Some requirements for your program:
A client should be able to make a submission with information about its race(s). Information about a race includes the race's name, the location, the year (an integer), the distance of the race in numbers of kilometers (km) (a real number), the time taken to run the race (a real number, in minutes), and a personal satisfaction (a real number) for the race (out of 10).
A client should be able to ask what is the name of the longest race anyone has run over all the submissions by all clients made so far. The server should allow this, and respond with the name of the race. (If there is a tie, just respond with any one of the races involved in the tie.) (For the example client given below, after all the indicated submissions are made, there is a tie. So, one possible answer would be Chicago Marathon.)
A client should be able to ask for the name of the race most frequently run (the name of the race submitted most often), over all submissions made so far. The server should respond with the name of that race. Note that submissions for a particular race in different years all count towards the number of submissions for that race. (If there is a tie, just respond with the name of one of the races involved in the tie.) (For the example client given below, after all the indicated submissions are made, the answer would be New York Mini 10K.)
A client should be able to ask for the name of the race with the best average personal satisfaction over all submissions made so far. Again, don't worry about what year the submissions were made in when doing this calculation. To figure this out, the server will need to know, for each different race's name for which there has been a submission, what the average personal satisfaction is for those submissions. Then, the server just needs to figure out which of these averages is the greatest. The server should respond with the name of that race. (If there is a tie, just respond with the name of one of the races involved in the tie.) (For the example client given below, after all the indicated submissions are made, the answer would be Chicago Marathon.)
A client should be able to ask for the number of submissions that have been made so far for a particular race (i.e., for a particular name of a race). Again, ignore the year in which the race was run for the purpose of gathering this information. The server should respond with the number of submissions for that race (for that race's name). (For the example client given below, after all the indicated submissions are made, if the client asked how many submissions had been made for Chicago Marathon, the answer would be 2.)
A client should be able to ask for the number of submissions made so far. The server should respond with the number of submissions made so far. (For the example client given below, after all the indicated submissions are made, the answer would be 8.)
A client should be able to ask for a list of all races that have been submitted so far by all clients. Again, ignore the year in which the races were run. The server should respond with an appropriate list of races. (For the example client given below, after all the indicated submissions are made, the answer would be New York Mini 10K, Chicago Marathon, NYC Marathon, WIU Old Stompin' Ground Runaround, WIU Fallen Soldiers 5K
Hi, I have read the requirements and I would like to do this project if given the opportunity. I am a computer science practitioner and having the "Java and Algorithms Certification Badge" in my profile gives me confidence I can deliver the job.
Hello
My name is Ahmed, i passed freelancer java exam with top 10% rated
plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 3+ years experience.
small overview of feedback on my profile
“professional , the best , if u have any problem, i would recommend Ahmed”
"Highly recommended , smart , on time ,high experience and he did a difficult assignment
that others couldn't finish . will hire again"
“Awesome job as usual highly recommended very dedicated and satisfying A+++
Thank you for this great job”
looking forward to work with you
Regards