Java 05: While & For Loops Statements
Uploaded by: gorilla3d
Video Stream Description:
Java 1.6 with NetBeans 5.5.1 beta
stream video tags: code coding for java loop netbeans oop programming statements while
Find more videos in the "Howto" category
See more video streams uploaded by gorilla3d
Comments for this video stream: Show || Hide





















for example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles. write a program that asks for the speed ofa vehicle(in miles per hour) and the number of hours it has traveled. it should use a loop to display the distance a vehicle is traveling at 40 mph for a 3 hour time period. it should display a report similar to the one that follows:
hour - 1 distance - 40 hour- 2 distance- 80 hour- 3 distance - 120