###### Assembly Programming

(5/5)

### You will be given an integer array of positive numbers.

**INSTRUCTIONS TO CANDIDATES**
###### ANSWER ALL QUESTIONS

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.

The input will be the following variable in your program:

.L3Array DCD 22,9,333,47,72,128,111,44,-999

The actual number of array entries and their values will be different when your program is graded. The last number will still be -999.

The output of your program will be the counts and totals placed in the following variables:

L3OddCt DCD 0; count of odd numbers

L3OddTot DCD 0; total of odd numbers L3EvCt DCD 0; count of even numbers .L3EvTot DCD 0; total of even numbers

Your program must use the variable names L3Array, L30ddCt, L30ddTot, L3EvCt, and L3EvTot.

The expected results for the array contents shown above are:

. L30ddCt = 4

.

L3OddTot 500

. L3EvCt = 4

L3EvTot = 266

Your program will be tested with a different set of values in L3Array. The expected output will vary based on that input. Do not assume that the array will contain eight values. Grading

##### Attachments:

## Related Questions

##### . Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

##### . The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

##### . Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

##### . SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1
Project 1
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of

##### . Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1
Project 2
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of