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
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