1. Engineering
  2. Computer Science
  3. 11 countpositive 5 marks in java implement the class method...

Question: 11 countpositive 5 marks in java implement the class method...

Question details

1.1 countPositive (5 marks) In Java, implement the class method countPositive that takes as input the reference of an array of numbers (all of type double) and returns the numher of elements of the designated array that are positive i.e. >0) You will store this method in a class called A1Q1. You can test your code using the program A1QITest This method does not read information from the user. I obtains the necessary information through its parameter. The same is true for all the methods in this part of the assignment 01/Utils.java OL/AIOITest.java

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution