Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 members = new 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

Conduct an effective performance feedback session. page 376

Answered: 1 week ago

Question

3. The group answers the questions.

Answered: 1 week ago