Computers and Technology, 24.04.2021 23:10 westes0376
You are on a team of developers writing a new teacher tool. The students names are stored in a 2D array called “seatingChart”. As part of the tool, a teacher can enter a list of names and the tool well return the number of students in the class found with names that matching provided list. For this problem you will be completing the ClassRoom class in the problem below. Your job is to complete the numberOfStudents found method. This method accepts an array of Strings that contain names and returns the quantity of students with those names. For example:
Assume that a ClassRoom object named “computerScience” has been constructed and the seating chart contains the following names:
“Clarence”, “Florence”, “Ora”
“Bessie”, “Mabel”, “Milton”
“Ora”, “Cornelius”, “Adam”
When the following code executes:
String[] names = {"Clarence", "Ora", "Mr. Underwood"};
int namesFound = computerScience. numberOfStudents(names);
The contents of namesFound is 3 because Clarence is found once, Ora is found twice, and Mr. Underwood is not found at all. The total found would be 3.
Complete the numberOfStudents method
public class ClassRoom
{
private String[][] seatingChart;
//initializes the ClassRoom field seatingChart
public ClassRoom(String[][] s){
seatingChart = s;
}
//Precondition: the array of names will contain at least 1 name that may or may not be in the list
// the seating chart will be populated
//Postcondition: the method returns the number of names found in the seating chart
//TODO: Write the numberOfStudents method
public int numberOfStudents(String[] names){
}
public static void main(String[] args)
{
//DO NOT ENTER CODE HERE
//CHECK THE ACTUAL COLUMN FOR YOUR OUTPUT
System. out. println("Look in the Actual Column to see your results");
}
}
Answers: 2
Computers and Technology, 22.06.2019 11:00
The great length of north america causes the climate to be varied. true false
Answers: 2
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
You are on a team of developers writing a new teacher tool. The students names are stored in a 2D ar...
Social Studies, 21.05.2021 16:00
Mathematics, 21.05.2021 16:00
Biology, 21.05.2021 16:00
Computers and Technology, 21.05.2021 16:00
Spanish, 21.05.2021 16:00
Mathematics, 21.05.2021 16:00
History, 21.05.2021 16:00
Advanced Placement (AP), 21.05.2021 16:00
Mathematics, 21.05.2021 16:00
Mathematics, 21.05.2021 16:00
English, 21.05.2021 16:00
Mathematics, 21.05.2021 16:00
Geography, 21.05.2021 16:00