the assignment will be similar to an assignment used frequently in cs116 classes. you will be given an integer array of positive numbers. your program should process the array and do the following for each entry: determine if the number is odd or even. add to a counter for each type, i.e. an even counter and an odd counter. add the number to a sum for each type, i.e. a total of the odd numbers and a total of the even numbers. a value of -999 indicates the end of the array. your program should end at that point.



Answer :

Other Questions