Question
import java.util.ArrayList; public class Exam01_Tester { // Given: the members ArrayList private static ArrayList members = new ArrayList (); public static void main(String[] args) {
import java.util.ArrayList;
public class Exam01_Tester { // Given: the members ArrayList private static ArrayList
public static void main(String[] args) { loadFile("Members.txt"); printMembersWithPet("Jaguar"); System.out.println(); printEmailCountByProvider("google.com"); System.out.println(); printSalaryData(); System.out.println(); printHighestPaid(); }
private static void loadFile(String fileName) { // Load all members USING THE TECHNIQUES WE DID IN CLASS ONLY - do not use your 174 notes }
private static void printMembersWithPet(String animal) { // Prints all members that have a animal as a pet }
private static void printEmailCountByProvider(String emailProvider) { // Prints the number of email addresses for the given provider }
private static void printSalaryData() { // Prints a single line with the total number of Members, // the total of all salaries, and the average salary // Example output: // 234 members totaling $5,343,125. Average salary: $22,833.86 }
private static void printHighestPaid() { // Prints the member that is the highest paid. } }
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