2 Replies - 304 Views - Last Post: 05 February 2012 - 11:07 AM Rate Topic: -----

Topic Sponsor:

#1 yurinio122  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-March 11

Completely beginner needs help.

Posted 01 February 2012 - 02:33 AM

Hey guys i get a project to do and i am not sure how can i start doing that program :/

That is task "Write a program, which inputs three numbers from the keyboard and stores them in an array or list box called numbers. The sum of the three numbers should be calculated, stored in a variable sum, and then displayed on screen."

Function, passing parameters, array or list box must be used.


Please any help :/?

Is This A Good Question/Topic? 0
  • +

Replies To: Completely beginner needs help.

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: Completely beginner needs help.

Posted 01 February 2012 - 03:42 AM

First things first....

Do you have to do the project in VB6? If not and you are a complete beginner as you said, then can I suggest you start your learning path with the newer VB.Net language.

Secondly, what have you actually tried yourself? Do you have a user interface or any code at all? If you're doing a course on programming, then I can't believe that your tutor has asked you to go away and write a program with no prior knowledge of anything.

You need to have a go at this yourself then come back and post what you have. Highlight what problems you are experiencing, then people will be more than happy to assist you.
Was This Post Helpful? 0
  • +
  • -

#3 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 323
  • View blog
  • Posts: 1,950
  • Joined: 19-May 09

Re: Completely beginner needs help.

Posted 05 February 2012 - 11:07 AM

This should get you pointed in the right direction. First, use an array, not a ListBox. Use the InputBox function to get a number. Use a for next loop to run through the array. Each time you go through the loop, add the current array item's value to a variable. When the for next loop is finished, use the MsgBox function to show the variable as the result. Here is the reference to VB6. Do some reading, and don't ask us to write the code for you. If you have questions about what you've attempted once you've made an attempt, we'll do our best to answer them. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1