ACTIVITY 1.4

In this activity you will walk a list of cars 
and pick out the fastest and slowest cars.

1. 	As before, open Visual Studio Code by double-clicking its
	icon on the desktop, or by selecting it from the application
	menu.
	
2.	Your instructor will have given you the path to a folder
	containing the course exercises. It will be something like
	Documents\Course\1.4. From the main menu bar, select
	File | Open folder... then in the folder search dialog
	that appears, navigate to the folder your instructor
	gave you. Click 'Select folder' to open the folder.

3.	In the Explorer bar at the left of the screen, Click
	the 'src' folder, then click the 'App.java' file to
	open it.

4.	Make sure the App.java tab is selected at the top of the
	window, if you get a Java overview window hiding App.java.

5.  Read the code and try to understand what is there already.
    There should be two arrays, one with a list of car names,
    the other with a list of their top speeds in miles per hour.

    Haw many elements are there in each array?

6.  Beneath the comment containing the '###' marker, add
    two lines of code that creates the integer 'fastest', 
    initialising it to zero.

7.  Now add a for loop that uses an integer loop counter that
    counts from zero to one less than the length of the arrays:

    for(int i = 0; i < cars.length(); i++) {

    }

8.  Between the curly braces of the for loop, add an if
    statement that tests whether the car at index i is
    faster than the car at index 'fastest':

    if(topSpeed[i] > topSpeed[fastest]) {

    }

9.  In the body of the if statement, assign the value
    of i into the variable fastest, as the car at index
    i is faster than the previous;y recorded fastest car.

10. Add a println line after the for loop that prints out
    the name of the fastest car.

10. Launch a new terminal window, compile, and run your
    program. Your program should report the Bugatti as
    the fastest car.

IF YOU HAVE TIME ...

11. Now extend your code so that it also finds out which
    car in the array is the slowest.

YOU HAVE FINISHED!
