M
mommakind
I'm having some trouble figuring out the logic to a homework problem,
and since my teacher is out of town for a few days I thought I would
check in here and see if someone can help me.
I have lstClasses, which has a list of 5 classes. I have lstCities,
which has a list of 5 cities. Now each class has registration fee
and a different number of days (, registration fee is $500 for Class
1 and goes for 3 days) and each city has a lodging rate per night.
So, the user should select the class in the first box, then the city
in the second box and the charges should appear in the third box, and
when a button is pressed a grand total appears elsewhere on the form.
I would really appreciate it if you guys could help me think through
the logic I need to attach the values, or calculate the values. I
really think there is an easier way than If then Else for every
combination.
Thanks in advance.
M
and since my teacher is out of town for a few days I thought I would
check in here and see if someone can help me.
I have lstClasses, which has a list of 5 classes. I have lstCities,
which has a list of 5 cities. Now each class has registration fee
and a different number of days (, registration fee is $500 for Class
1 and goes for 3 days) and each city has a lodging rate per night.
So, the user should select the class in the first box, then the city
in the second box and the charges should appear in the third box, and
when a button is pressed a grand total appears elsewhere on the form.
I would really appreciate it if you guys could help me think through
the logic I need to attach the values, or calculate the values. I
really think there is an easier way than If then Else for every
combination.
Thanks in advance.
M