Question: Three runners are in a 40 meter race. Each runner travels at a constant speed. Write a program that creates a runner class containing runner
Three runners are in a 40 meter race. Each runner travels at a constant speed.
Write a program that creates a runner class containing runner ID and speed.
In a separate implementation class, allow the user to enter the speed for each runner. Call the constructor to create an instance of the runner class. Include appropriate properties. Do not allow the ID to be changed after an object has been constructed. Provide a method in the runner class to compute the time it takes for each runner to cross the finish line and return the time.
This is for C#.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
