Parade length

Write a program to help small towns estimate the length of parades, like their July 4th parade.

Parades have floats and marching bands. Each float needs 30 meters. Each band needs 100 meters.

The worksheet starts like this:


The user types the number of floats and bands, and presses Run.

Add validation. Make sure that floats and bands are numbers, and zero or more. If the data is bad, show an error message in a MsgBox, and end the program. For example:


If the input is OK, compute and output the result.


Follow the usual coding standards for indenting and such.

Upload your worksheet.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)

Referenced in: