Debug Assignment 2

The assignment will require you to make several corrections to an existing program.

This program calculates the cost of roses purchased by a customer. The number of roses and the cost of one rose are entered in TextBoxes. When the user clicks the Calculate Cost command button the cost before tax is calculated by multiplying the cost of one rose by the number of roses purchased. A 5% sales tax is added to determine the final cost.

The program source files can be found in the Debug Source Code folder on the Content tab in a zipped folder. You will need to download the zipped folder to your personal storage device and the unzip it. To unzip a folder you can right-click and choose Extract All.. from the menu.

Correct all the syntax errors.

Once all the syntax errors are corrected assume the number of roses is 15 and the cost of the each rose is 1.25. What would the before tax cost be? What would the tax be? What would the final cost be?

Run the program and enter 15 and 1.25. What are the results?

if necessary correct all remaining errors.

Note:  A corrected version of the program can be found in the Sample Executables folder in Angel.

Remember to

When you are confident the program works

Zip up and submit the corrected code to the appropriate drop box.