Distance Calculator
If you know a vehicle’s speed and the amount of time it has traveled, you can calculate the distance it has traveled as follows:
Distance = Speed * Time
For example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles. Create an application with a form similar to the one shown in Figure 1. When the user clicks the Calculate button, the application should display an input box asking the user for the speed of the vehicle in miles-per-hour, followed by another input box asking for the amount of time, in hours, that the vehicle has traveled. Then it should use a loop to display in a list box the distance the vehicle has traveled for each hour of that time period. Figure 2 show:» an example of what the application’s form should look like.
Figure 1 Distance Calculator

Figure 2 Distance Calculator completed

Use the following test data to determine if the application is calculating properly.
Vehicle Speed: 60
Hours Traveled: 7
Hour | Distance Traveled |
1 | 60 |
2 | 120 |
3 | 180 |
4 | 240 |
5 | 300 |
6 | 360 |
7 | 420 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.