Visual Basic 6 Help (BMI Calculator)

Associate
Joined
10 Dec 2007
Posts
1,862
Hey guys, i have a small project to do and i have no clue on where to start.

Basically what it is, (ill put up a pic)

bmiweight.jpg


I need to write a program in VB 6 that will Calculate the BMI of 5 members and output the answer one under the other in "ListAnswer" (or whatever way is easiest)

And if possible have the numbers i entered from weight and height in "List Height" and "List Weight" (but that is not a needed i don't think)

After i have entered all 5 person details(and have the 5 BMI's) they need to be put into the 3 categories on that form. "Under Weight", "Ideal Weight" and "Over Weight" at the side of the labels (using a list box or whatever)

Thus, use a "Counting Occurences" Algorithm which will put each members detail into a category depending on their BMI. (i think it's like < 18.5 is Underweight etc etc)

AFAIK that is all the program needs to do.

There is however once problem which really makes this daunting to me, i need to use as i said the counting occurences algorithm aswell as implementing ByVal and ByRef to send and receive data(not sure where that would go)

I think we can use arrays and to put each member into a BMI category, Case statements could be used i think.

Any help is appreciated, if you need any additional info then just ask!

With the upmost Thanks!
 
Back
Top Bottom