PROGRAMMING ASSIGNMENT 3 INSTRUCTIONS
This week you are going to take your youth camp program further and utilize subs and functions. The user will
enter the values and the program will determine the total cost of the trip based on the entry from the user. The
program will use a function to determine the cost and a sub to clear the data.
1. Form Setup
a. You must save your project using your initials in the name** This is required and the project will
not be accepted otherwise.
b. Design your screen to look like the one below.
c. Update the backcolor to the color of your choice.
d. Lock all controls.
e. Use appropriate naming conventions for controls and variables.
i. Txt for textbox
ii. Lbl for label
iii. Frm for form
iv. Chk for checkbox
v. Lst for listbox
f. Tab Control must flow in order and not go to the total textbox
g. All buttons have access keys
h. The lstbox must be cleared before written to.
i. Choose 4 locations of your choice for camp and add them to a dropdownlist combo: The price per
day should not show but these prices will be used in the program.
i. Location1 – price per day $500
ii. Location 2 – price per day $100
iii. Location 3 – price per day $50
iv. Location 4 – price per day $150
a. A travel fee in the amount of $300 must be stored in a constant variable
b. Create a comment section at the beginning of the code with the name of the assignment, purpose of
the assignment, and your name. Comments must be throughout each sub of the application.
c. Remove any subs that are not utilized by the program
3. Calculate Button
a. The information that was entered should be checked to make sure there are values entered. If the
user entry contains null values, the user should be so advised, and the user should be directed to the
text box that contains the error. The user must enter a group name, location, day of travel, and
number of travelers. Make sure your error messages are meaningful.
b. Determine if insurance is wanted based on the value of the checked box. Set the value of insurance
to zero if the option is not checked and $150 if the option is checked.
c. Store the amounts entered by the user in variables and use these variables in the formula.
d. Call the calculate function to retrieve the value of the daily cost
e. Utilize a for loop to display a camper total for the cost per number of youth added
f. Calculate the cost for the total trip using the calculation below:
((number of people) * (daily cost of trip) * (number of days)) + insurance amount + fee
g. Display the total cost of the trip
h. Call a sub to determine if a bus is needed for the trip
i. Make sure all costs are shown as currency
j. Make sure all spacing is accurate
4. Calculate function
a. Determine the price per day depending on the location selection. You must show you can use a case
statement for this decision.
b. Return the daily cost
5. Bus Sub
a. Receives the number of travelers
b. Checks to see if the number of travelers is over 10. If over 10 the bus label is updated to display a
Y. If the number of travelers is less than 10 the bus label is updated to display a N
6. Close Button
a. The application quits when the button is pressed
7. Clear Button
a. The text boxes are cleared
b. The check box is cleared
c. The listbox is cleared
d. The combobox is cleared
e. The Bus label is cleared
This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 3.
Purchase answer to see full