Click here to Skip to main content
16,010,268 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Too many Filewatches! Pin
KevinMac26-Apr-07 17:12
KevinMac26-Apr-07 17:12 
GeneralRe: Too many Filewatches! Pin
rudemusik27-Apr-07 1:34
rudemusik27-Apr-07 1:34 
GeneralRe: Too many Filewatches! Pin
KevinMac27-Apr-07 5:21
KevinMac27-Apr-07 5:21 
GeneralRe: Too many Filewatches! Pin
rudemusik27-Apr-07 15:43
rudemusik27-Apr-07 15:43 
QuestionC# convert problem Pin
Xmen Real 26-Apr-07 15:29
professional Xmen Real 26-Apr-07 15:29 
AnswerRe: C# convert problem Pin
MatrixCoder26-Apr-07 16:05
MatrixCoder26-Apr-07 16:05 
GeneralRe: C# convert problem Pin
Xmen Real 26-Apr-07 16:13
professional Xmen Real 26-Apr-07 16:13 
QuestionAbsolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 13:11
new_rez26-Apr-07 13:11 
Hello there,

sorry this is my first post.

I really urgently need someones help. Ive got this question for some work and I have no idea how to do it. The teacher hasn't shown us and I cant find anything to help me on the net. I need to complete this question as not doing it will mean I fail my course. PLease could somebody help me out. I Would be so appreciative!!

Here is the question -

This problem concerns some simple array handling.

Problem specification
Given an array of integers, you have to perform some integer calculations, and display some information concerning their number, their sum and average values, their minimum and maximum values, and the number of even and odd integers.

Method
Create an empty integer array that will hold up to 20 integers. Then, repeatedly read integer values from the keyboard until the user types zero. Afterwards, loop through the array and display the number of integers read (excluding the terminating zero), their sum (an integer), their average (a double), the minimum and maximum values encountered
(both integers), and finally the number of even and odd integers read (these should be declared as integers too).

Always exclude the terminating zero from your calculations.

Error conditions: If you encounter a negative number (e.g. -151), display the message
Negative number: -151
Don't take it into account in your calculations.
If you encounter a number greater than 100 (e.g. 199), display the message Value exceeds 100: 199 and exit immediately.
If there are no valid numbers in the array to process, display the message No numbers to process! and exit immediately.


To me it is really complicated and I have no idea where to start! Im completely stumped on how to do the calculations and incorporate them into the array! I have had a try and ive managed to build the array, but, it is rubbish and doesn't work very well.

I know this is asking a lot of someone but I really have no idea what to do. I've tried google and everything, searched the help files etc.

Please, please, please help.

John
AnswerRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 13:36
protectorChristian Graus26-Apr-07 13:36 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:19
new_rez26-Apr-07 14:19 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:24
new_rez26-Apr-07 14:24 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:36
protectorChristian Graus26-Apr-07 14:36 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:45
new_rez26-Apr-07 14:45 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:50
protectorChristian Graus26-Apr-07 14:50 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:25
Colin Angus Mackay26-Apr-07 14:25 
GeneralRe: Absolutely URGENT help needed - Collections Pin
new_rez26-Apr-07 14:27
new_rez26-Apr-07 14:27 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:33
Colin Angus Mackay26-Apr-07 14:33 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:36
protectorChristian Graus26-Apr-07 14:36 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:33
protectorChristian Graus26-Apr-07 14:33 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:32
protectorChristian Graus26-Apr-07 14:32 
AnswerRe: Absolutely URGENT help needed - Collections Pin
Christian Graus26-Apr-07 14:15
protectorChristian Graus26-Apr-07 14:15 
GeneralRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:20
Colin Angus Mackay26-Apr-07 14:20 
AnswerRe: Absolutely URGENT help needed - Collections Pin
Colin Angus Mackay26-Apr-07 14:19
Colin Angus Mackay26-Apr-07 14:19 
Questionregular expression Pin
aldo hexosa26-Apr-07 12:50
professionalaldo hexosa26-Apr-07 12:50 
AnswerRe: regular expression Pin
Christian Graus26-Apr-07 13:03
protectorChristian Graus26-Apr-07 13:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.