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

I am working on the following code for a Visual basic Airport Distance Calculato

ID: 3536496 • Letter: I

Question

I am working on the following code for a Visual basic Airport Distance Calculator and I have the following tasks.

Here is the code.

Private Sub ID1ComboBox_SelectedIndexChanged(ByVal sender As System.Object, _

ByVal e As System.EventArgs) Handles ID2ComboBox.SelectedIndexChanged

ID1Integer = ID1ComboBox.SelectedIndex

City1TextBox.Text = Hubs(ID1Integer).City

Lat1TextBox.Text = Hubs(ID1Integer).Lat

Lon1TextBox.Text = Hubs(ID1Integer).LonEnd Sub

Private Sub ID2ComboBox_SelectedIndexChanged(ByVal sender As System.Object, _

ByVal e As System.EventArgs) Handles ID1ComboBox.SelectedIndexChanged

ID2Integer = ID2ComboBox.SelectedIndex

City2TextBox.Text = Hubs(ID2Integer).City

Lat2TextBox.Text = Hubs(ID2Integer).Lat

Lon2TextBox.Text = Hubs(ID2Integer).Lon

End Sub

These are my tasks and would greatly appreciate some help.

Task 1: Correct the event handlers for the two ComboBoxes.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Task 1a: Remove the syntax errors from ID1ComboBox_SelectedIndexChanged and ID2ComboBox_SelectedIndexChanged so that the code will compile.

Task 1b: Correct the logical errors that prevent the correct values for City, Latitude, and Longitude from displaying below the selected airport ID in ID1ComboBox and ID2ComboBox.

Task 1c: Add documentation to your code to explain what it is meant to do.

Task 1d: Check out the master copy of the project and install your changes.

Explanation / Answer

I have uploaded it here. It shows error when uploaded here. There can be minor changes. But logic is 100% correct. Hope I get the ratings.


Link is http://www.shrib.com/jfuzdVE6

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