Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Dorm and Meal plan Calculator A university has the following dormitories: Allen

ID: 3656799 • Letter: D

Question

Dorm and Meal plan Calculator A university has the following dormitories: Allen Hall $1500 per semester Pike Hall $1600 per semester Farthing Hall $1200 per semester University Suites $1800 per semester The university also offers the following meal plans: 7 meals per week $560 per semester 14 meals per week $1095 per semester Unlimited meals $1500 per semester Create an application with two forms. The startup form holds the names of the dormitories and the other holds the meal plans. When the user selects a dormitory and meal plan, the application should show the total charges for the semester on the startup form. If you could send me the application that would be awesome - dacodeman_09@hotmail.com

Explanation / Answer

Public Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click Dim AllenHall As Integer = 1500 Dim PikeHall As Integer = 1600 Dim FathingHall As Integer = 1200 Dim UniversitySuites As Integer = 180 Dim dormResults As Integer If ListBox1.SelectedIndex = -1 Then MessageBox.Show("Select a Meal Plan!") End If If ListBox1.SelectedIndex = 0 Then lblDormCost.Text = AllenHall.ToString dormResults = AllenHall ElseIf ListBox1.SelectedIndex = 1 Then lblDormCost.Text = PikeHall.ToString dormResults = PikeHall ElseIf ListBox1.SelectedIndex = 2 Then lblDormCost.Text = FathingHall.ToString dormResults = FarthingHall ElseIf ListBox1.SelectedIndex = 3 Then lblDormCost.Text = UniversitySuites.ToString dormResults = UniversitySuites End If

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote