Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

286 Part II Programming Fundamentals



  1. Save your changes to disk.


Tip On the companion CD, I gave this project a separate name to keep it distinct from
the Fixed Array project. The complete Dynamic Array project is located in the C:\Vb10sbs\
Chap11\Dynamic Array folder.


  1. Click the Start Debugging button to run the program.

  2. Click the Enter Temps button.

  3. Type 5 when you’re prompted for the number of days you want to record, and then
    click OK.

  4. Enter five temperatures when prompted.

  5. When you’ve finished entering temperatures, click the Display Temps button.


The program displays the five temperatures on the form, along with their average.
Your screen looks similar to the following screen shot:


  1. Click the Close button on the form to end the program.

Free download pdf