This question requires you to use the following specification for processing a list of integers that computes the total and average for the positive integers. Note the list may contain both positive and negative integers. You should use at least the following pseudocode operations when computing the total and average. [35]
private void addTotal(num) – adds the num to the total
public int getTotal() – returns the total
private void setAverage() - computes the average
public float getAverage() – returns the average
public void processList(list) – passes in a list of integers and processes
the list
Using the Eclipse IDE (or other IDE) write well documented code for a class (Q5Class) that processes a list of Integers as specified above
Write well documented JUnit test cases in two classes (Q5AllStatesTests – containing only test cases for all states, and Q5AllTransTests – containing only test cases for all transitions) for the test criteria in part (b) in the Eclipse environment (or other environment) and test the class Q5Class.