Computing.Net > Forums > Programming > VB beginner exercise help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB beginner exercise help

Reply to Message Icon

Name: VB beg
Date: November 12, 2002 at 09:00:09 Pacific
OS: XP
CPU/Ram: 1.3ghz
Comment:

Hi
I have asked to create a program at school, and i need lots of help
The program is required to:
1) store names and marks for 10 students in a maths test (marks out of 100)
2) ask user for a name and display that students mark
3) Display name and mark for the person with the largest and lowest mark.

For any experienced VB user this should be a piece of cake, but for me its not. I believe i am suppose to use a for..next loop.
Can someone help me, i am pretty new to this programming. I would like some steps and some example code which i can follow a pattern.
Please help (i am not trying to gain an A, just need some help)
thanks
VB beg



Sponsored Link
Ads by Google

Response Number 1
Name: Mike
Date: November 12, 2002 at 15:14:33 Pacific
Reply:

'public collection Students is visible
'throughout the project

Public colStudents As New Collection


'The following code adds mark 90 (item in
'collection)
'for student John (key in collection)

colStudents.Add 90, "John"


'The following code returns a mark for a
'particular student.

colStudents.Item("John")


0
Reply to Message Icon

Related Posts

See More


printing reports in Acces... c++ code convert .bmp to ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB beginner exercise help

vb beginner needs help www.computing.net/answers/programming/vb-beginner-needs-help/10417.html

I need help about vb 6.0 www.computing.net/answers/programming/i-need-help-about-vb-60/5404.html

VB cann open! Help please! www.computing.net/answers/programming/vb-cann-open-help-please/9645.html