Working with Variables and Constants with Calculations and Error Handling

The MWCC Computer Club is raising money for a student scholarship. A local flower shop has agreed to provide flower bouquets for a Mother's Day sale at the college. The flower shop will give the club 20% of the money raised from the flower sale.

Write a Visual Basic program to calculate the cost of each sale and the money raised by the club.

The user will input the number of bouquets and the price of each bouquet using text boxes (assume that all bouquets cost the same amount).

Name the project Scholarship.
Rename your form as: ScholarshipForm.vb

Sample Design: see image.

The form will use Text Boxes to enter the number of bouquets bought and the price of each bouquet.

The form will use Text boxes to display:

1.The purchase price (number of bouquets times the price).
2.The sales tax of 6.25% of the purchase price (.0625).
3.The customer bill (purchase price + sales tax).
4.The scholarship money for the club (20% of the customer bill).

The form will keep a summary of the totals for the day. Use Text boxes to display:

1.Total number of customers.
2.Total number bouquets sold.
3.Total sales tax.
4.Total of all customer bills.
5.Total money raised for the club.
6.Average customer sale (total of all customer bills divided by the total number of customers.

Design your form to include the following Buttons:

1.Calculate button to calculate customer sales and totals for the day.
2.Clear and Reset button (clear the customer sales but not the totals for the day).
3.Exit button to end the program.

Include each of the following in your project:

1.Use Conventional and Meaningful NAMES for all controls and for all variables and constants.
2.Use local and module-level variables where appropriate.
3.Use Constants for the sales tax and club profit.
4.Use the Option Strict ON code (see page 122).
5.Use tool tips and access keys for all buttons.
6.Make the Calculate button the accept button and the Exit button the cancel button.
7.Right justify all text boxes and set the font size = 12 point bold type.
8.Make all text boxes used for display "Read Only".
9.Format all money display text boxes to currency, 2 places.
10.Set the form title bar as: MWCC Scholarship Fund
11.Add the title MWCC Scholarship Flower Sale in your choice of size, style, and color.
12.Add your name as a label at the bottom of the form.
13.Use the Parse Method for the two text entries.
14.Use nested Try/Catch code for error handling of the 2 data entry text boxes. Refer to the sample project called Book Sales for the correct structure of the Try/Catch/End Try code (pages 145-147).
15.Use a message box to display an error message for errors in each data entry text box.
16.Add comments to the code for ALL procedures.
17.Add comments to the declaration section for your name, date, project name, and a short description.

Sample Output: see image.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.