Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Visual Basic Programming CIS 115- Programming Project 2 Chapter 4 The School of Computing will be sponsoring a road race this year and has asked
Visual Basic Programming
CIS 115- Programming Project 2 Chapter 4 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 5 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 Age Breakdowns Children (ages 17 and under) $50 Adults (ages 18 to 65) Master (66 and over Half Marathon 10K $20 5K $10 $20 $15 60 $25 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, 5K) 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. ScC Heliday Run SoC Holiday Run Name (Last, Frtc Wlas, Cameron Name (Last Furst) Jchns, Tom Event Shirt Sze Small Medum Event Optione Shin Siza Smal Medium Lage Optiona: Ha Merathan PreRace Dinner (S15) O 10K PastRace Lunch($10 10K FoetRace urch (S10) o XLarge Process Order Cear Form Procea Order Clear Fom Ext Paticipant's Name ile Paticipants Ape: 32 Fegietraion Number CWHM500 Porticiport's Name: Jchrs. Tom Participart's ge: 48 Reg sration Number: TJ5500 Entry Fee Due $20.00 dctonal t aht cost: 5200 Adectiond opliondl ees: $25.00 Total Due $5.00 Optional fecs included PeRace dne Post Racelunch Total Due: $47.00 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 groups 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 " 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