train travels 40 miles .per hour for 3 hours, the distance traveled is 120 miles. need input box asking 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. it should use a loop to display in a list box the distance the vehicle has traveled for each hour of that time period.

Great, you can read your homework assignment nicely.

Now show us the code that you have created and where you are having problems with it.

We don't just provide you with homework cheating code here you know...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.