[Solved]9 41 Pm Sun Apr 21 Arraylist Numanalyzer Part2doc Compater Science Odd Even Part Ii Lab Go Q37187146


9:41 PM Sun Apr 21 arraylist numanalyzer_ Part2.doc Compater Science ODD EVEN PART II Lab Goal: This lab was designed to review basic class oreation and to introduce and demonstrate how to Lab Description Write a Number class that can be used to determine if a number is odd, even, or perfect. Then, use this Number class to determine how many numbers in the lst are odd, even, and pefect Sample Data erAnalyzer java NumberAnalyzerR unner-Java Sample Output heck to see how many erfect numbers exist in by 2 that has a remainder of 1 he list any number when divided VEN-any number when divided is perfect because it its divisors The divisors of 6 are 1 2 that has a remainder of 0 %-modulus-used to find the remainder of division 9:41PM Sun Apr 21 79%- NumberAnalyzer.java WIc) A+ Computer Science Name import java.utl.Arraylist import java.util.Scanner import static java, lang.System public class NumberAnalyzer private ArrayListcNumber> list public NumberAnalyzerl public NumberAnalyzerlString numbers) publie void setist/String numbers) public int countOdds) int oddCount-0 return oddCount public int countEvens) int evenCount-0; return evenCount; public int countPerfectso int perfectCount 0 return perfectCount; public String toStringl) return 9:41PM Sun Apr 21 79%- NumberAnalyzerRunner.java WIc) A+ Computer Science Name import java.utl.Arraylist import java.util.Scanner import static java, lang.System public class NumberAnalyzerRunner public static void mainl String args0) NumberAnalyzer test new NumberAnalyzerl”5 12961486 out.printin(test) out.printinC odd count “+test.countOdds)l out.print Inreven court =·+test.countEvens()); out.printinperfect count “test.countPerfectsD+ nin” add more test cases Show transcribed image text 9:41 PM Sun Apr 21 arraylist numanalyzer_ Part2.doc Compater Science ODD EVEN PART II Lab Goal: This lab was designed to review basic class oreation and to introduce and demonstrate how to Lab Description Write a Number class that can be used to determine if a number is odd, even, or perfect. Then, use this Number class to determine how many numbers in the lst are odd, even, and pefect Sample Data erAnalyzer java NumberAnalyzerR unner-Java Sample Output heck to see how many erfect numbers exist in by 2 that has a remainder of 1 he list any number when divided VEN-any number when divided is perfect because it its divisors The divisors of 6 are 1 2 that has a remainder of 0 %-modulus-used to find the remainder of division
9:41PM Sun Apr 21 79%- NumberAnalyzer.java WIc) A+ Computer Science Name import java.utl.Arraylist import java.util.Scanner import static java, lang.System public class NumberAnalyzer private ArrayListcNumber> list public NumberAnalyzerl public NumberAnalyzerlString numbers) publie void setist/String numbers) public int countOdds) int oddCount-0 return oddCount public int countEvens) int evenCount-0; return evenCount; public int countPerfectso int perfectCount 0 return perfectCount; public String toStringl) return
9:41PM Sun Apr 21 79%- NumberAnalyzerRunner.java WIc) A+ Computer Science Name import java.utl.Arraylist import java.util.Scanner import static java, lang.System public class NumberAnalyzerRunner public static void mainl String args0) NumberAnalyzer test new NumberAnalyzerl”5 12961486 out.printin(test) out.printinC odd count “+test.countOdds)l out.print Inreven court =·+test.countEvens()); out.printinperfect count “test.countPerfectsD+ nin” add more test cases
Expert Answer
Answer to 9:41 PM Sun Apr 21 arraylist numanalyzer_ Part2.doc Compater Science ODD EVEN PART II Lab Goal: This lab was designed to… . . .
OR

