Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a programming code using Visual Basic studio : The School of Computing will be sponsoring a road race this year and has asked you
Write a programming code using Visual Basic studio :
The School of Computing will be sponsoring a road race this year and has asked you to create a program that will calculate the entry fees for each participant. The race will offer three different courses; a Half marathon, a 10 kilometer run, and a S Kilometer run. Entry Fees Entry fees are based on the age of the runner and the event they participate in. The fee schedule is as follows: Breakdowns $50 575 S60 10K 520 530 525 SK $10 520 S15 Children (ages 17 andu Master (66 and T-Shirt Fees: T-shirts are free with entry fee unless the participant orders an X-Large. Participants who order X-Large t-shirts will be charged a $2.00 additional fee. Options: Two optional events will be offered: PreRace Dinner The cost of dinner is $15 PostRace Lunch- The cost of lunch is $10. Each registration processed should be assigned a registration number that is composed of the first initial of the first name (upper case), the first initial of the last name (upper case), an indicator as to which race (HM, 10K, SK) and a registration number. The registration number should begin with 500 and increase by 1 for each registration processed. Output should be formatted as shown below Sample output-no optional expenses. Sample output- including all optional expenses. Eve Programming Details (three event procedures): Process Order Click - o Validate Inputs-Give appropriate error message and end the procedure if incorrect Name textbox should not be blank "Age textbox should contain a positive, numeric value One radio button was selected from both group:s o Produce registration number o Determine correct entry fee o Determine if additional fee should be charged for t-shirt o Calculate total optional item cost o Calculate total amount due o Display output (formatted as shown in sample output-prev page) Name .Age " Registration Number Entry Fee "T-Shirt Cost (show only when applied-size XL radio button checked) Optional fees (show only when applied- lunch and/or dinner checkboxes checked) . Total Due Clear Button Click o Clear all textboxes o Clear all radio buttons o Clear all checkboxes o Sets the focus on the name textbox Exit Button Click o Closes the program Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started