DORM AND MEAL PLAN CALCULATOR A university has the following dormitories: Allen Hall $1,500 per semester Pike Hall $1,600 per semester Farthing Hall $1,800 per semester University Suites $2,500 per semester The university also offers the following meal plans: 7 meals per week $ 600 per semester 14 meals per week $1,200 per semester Unlimited meals $1,700 per semester Create an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form. For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results. I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you store the Meal Plans is a two dimensional array for name and cost. This will make it is easy to loop through them to find what the user has chosen. The results on the second form should include the following: Name of Dorm Dorm Cost Name of Meal Plan Cost of Meal Plan The total cost A Close button to close the form Must use C Sharp
DORM AND MEAL PLAN CALCULATOR
A university has the following dormitories:
Allen Hall
$1,500 per semester
Pike Hall $1,600 per semester
Farthing Hall $1,800 per semester
University Suites $2,500 per semester
The university also offers the following meal plans:
7 meals per week
$ 600 per semester
14 meals per week $1,200 per semester
Unlimited meals $1,700 per semester
Create an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form.
For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results.
I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you store the Meal Plans is a two dimensional array for name and cost. This will make it is easy to loop through them to find what the user has chosen.
The results on the second form should include the following:
Name of Dorm
Dorm Cost
Name of Meal Plan
Cost of Meal Plan
The total cost
A Close button to close the form
Must use C Sharp
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images