Question: Write a program which will create an array of size 10.
// Fill the array with random numbers from 0 - 100. (use a loop and random number generator rand)
// Once you are done with this, you will then write a loop which will go through each element of the array, display the contents of that elementand tell if that element is an even number or odd number.
// Go through all the elements again and this time tell me how many are even and odd.
// Again go through all the elements and tell me the number you get IF you ADD all the even numbers and Subtract all the odd numbers. (This means the answer might be negative).Example: if the numbers are 30, 19, 22. Then you will start off with 30 - 19 + 22 = 33. Edit
TutorTeddy.com & Boston Predictive Analytics
[ Email your Statistics or Math problems to firstname.lastname@example.org (camera phone photos are OK) ]
Boston Office (Near MIT/Kendall 'T'):
Cambridge Innovation Center,
One Broadway, 14th Floor,
Cambridge, MA 02142,
Dallas Office (Near Galleria):
15950 Dallas Parkway,
Dallas, TX 75248,