Question
Assume that you have a Student class that includes a method getClassLevel(). That method returns Freshman, Sophomore, Junior, or Senior. Given instance variables in a
Assume that you have a Student class that includes a method getClassLevel(). That method returns Freshman, Sophomore, Junior, or Senior. Given instance variables in a StudentList class of an array of Student objects and an integer that represents the number of students store in the array, write an algorithm in pseudocode for the following problem: Write a method to count the number of freshmen, sophomores, juniors, and seniors in the array of students and print the counts (with appropriate labels) to the screen. Use an array of 4 integers to hold your counts.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started