c++ array

Hey guys i need some help with a c++ array.Thats my task :
Input a dimensionality from the keybpard (with a correction check) and array elements of whole numbers K(L) (L<=30)
Calculating the average of the whole numbers in the array which are which are divided without residue by 6.
Finding the highest negative number and its sequence number.
I appreciate any help because im really new in this area.Thank you.
array elements of whole numbers .... Finding the highest negative number.

"whole numbers" (sometimes) implies non-negative. Best to say "integers".

And instead of "dimensionality", it's best to say "size" since dimensionality can imply 1D, 2D, etc. You're talking about having the user enter the size of a one-dimensional array.

What have you got so far?

Can you get a size from the user?

Can you dynamically allocate an array of that size? (Actually, it looks like you might have a max size of 30, in which case you don't need dynamic allocation. You just make an array of 30 ints.)

Can you make a loop that lets the user enter values for the elements?

numbers in the array which are which are divided without residue by 6.

* Does "divide without residue" mean same as "divide and discard remainder"?
* Is it "divide first" and then "calc average"?
* "Highest negative"? Which is higher: -7 or -42?

For the "really new":
http://www.cplusplus.com/doc/tutorial/arrays/
Maybe "numbers that can be divided by 6 without residue" means multiples of 6?
Topic archived. No new replies allowed.