Question

In: Computer Science

A teacher needs list to fill student scores on five assignments.There are 15 students in her...

A teacher needs list to fill student scores on five assignments.There are 15 students in her class.The students are numbered 1 through 15.Use nested for loops to print out the list for the teacher.

Solutions

Expert Solution

//Note:: You can give input the program works fine.
import java.util.*;
class Main
{
  public static void main(String args[])
  {
    int[][] list = new int[5][15]; //array created to store scores for assignments
    Scanner sc = new Scanner(System.in);
    System.out.println("Filling scores of the 15 students for 5 assignments\n\n");
    //for loops to take input for scores for assignments
    for(int i=0;i<5;i++)
    {
      System.out.println("Enter scores for assignment:"+(i+1));
      for(int j=0;j<15;j++)
      {
        System.out.println("Enter scores for student:"+(j+1));
        list[i][j] = sc.nextInt();
        sc.nextLine();
      }
    }
    //for loops to print for scores for assignments
    for(int i=0;i<5;i++)
    {
      System.out.println("Scores for assignment: "+(i+1));
      for(int j=0;j<15;j++)
      {
        System.out.println("Scores for student: "+(j+1)+" is: "+list[i][j]);
        
      }
    }
  }
}

Output::

Note:: Adding score for 5 five students for 2 assignments .(This is for reference) You can give input for the scores of 15 students for 5 assignments.

If queries Comment


Related Solutions

An English teacher needs to pick 13 books to put on her reading list for the...
An English teacher needs to pick 13 books to put on her reading list for the next school year, and she needs to plan the order in which they should be read. She has narrowed down her choices to 5 novels, 7 plays, 7 poetry books, and 5 nonfiction books. Step 1 of 2 : If she wants to include no more than 2 nonfiction books, how many different reading schedules are possible? Express your answer in scientific notation rounding...
A) Quiz scores of statistics students were obtained by a teacher and listed below. Construct a...
A) Quiz scores of statistics students were obtained by a teacher and listed below. Construct a frequency distribution beginning with a lower class limit of 0 and use a class width of 2. What frequency is listed for the third class? 0, 4, 5, 4, 3, 6, 8,2, 4, 10 B) A frequency table of grades has five classes (A, B, C, D, F) with frequencies of 23, 24, 12, 7, and 24 respectively. Using percentages, what are the relative...
A teacher has five students who have taken four tests. The teacher uses the following grading...
A teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores. -------------------------------------------------------------------- Test Score Letter Grade -------------------------------------------------------------------- 90 – 100 A >= 80 < 90 B >= 70 < 80 C >= 60 < 70 D < 60 F ------------------------------------------------------------------- Write a program that uses Python List of strings to hold the five student names,...
An English teacher needs to pick 6 books to put on his reading list for the...
An English teacher needs to pick 6 books to put on his reading list for the next school year, and he needs to plan the order in which they should be read. He has narrowed down his choices to 25novels, 21 plays, and 6 nonfiction books. If he wants to include an equal number of novels, plays, and nonfiction books, how many different reading schedules are possible? Express your answer in scientific notation rounding to the hundredths place.
A math teacher tells her students that eating a healthy breakfast on a test day will...
A math teacher tells her students that eating a healthy breakfast on a test day will help their brain function and perform well on their test. During finals week, she randomly samples 45 students and asks them at the door what they ate for breakfast. She categorizes 25 students into Group 1 as those who ate a healthy breakfast that morning and 20 students into Group 2 as those who did not. After grading the final, she finds that 48%...
Grade distribution: A statistics teacher claims that, on the average, 10% of her students get a...
Grade distribution: A statistics teacher claims that, on the average, 10% of her students get a grade of A, 24% get a B, 38% get a C, 18% get a D, and 10% get an F. The grades of a random sample of 100 students were recorded. The following table presents the results. A. Compute the expected frequencies B. List all of the grades which were given more often than expected separate by commas. The grades which were given more...
A teacher is interested in her students’ opinion on whether the non-required lecture is effective for...
A teacher is interested in her students’ opinion on whether the non-required lecture is effective for them. She flips a coin every time a student walks into lecture and if it lands heads, she asks that student if they find lecture effective and records their answer. (a) Are there any issues with creating a confidence interval with this sample if our parameter of interest is the proportion of enrolled students who find lecture effective? Explain briefly. (b) Another lecturer asks...
A science teacher tells her class that their final project requires the students to measure a...
A science teacher tells her class that their final project requires the students to measure a specific variable and determine the velocity of a car with no more than 2.5% error. Jennifer and Johnny work hard and decide the velocity of the car is 34.87 m/s. The teacher informs them that the actual velocity is 34.15 m/s. Will Jennifer and Johnny pass their final project? SHOW ALL YOUR WORK TO GET ANSWER.
A statistics teacher wants to assess whether her remedial tutoring has been effective for her five...
A statistics teacher wants to assess whether her remedial tutoring has been effective for her five students. She decides to conduct a related samples t-test and records the following grades for students prior to and after receiving her tutoring. Tutoring Before After 2.4 3.0 2.5 2.9 3.0 3.6 2.9 3.1 2.7 3.5 (a) Test whether or not her tutoring is effective at a 0.05 level of significance. State the value of the test statistic. (Round your answer to three decimal...
Imagine there are five students in a class. Their scores on the midterm exam are: 93,...
Imagine there are five students in a class. Their scores on the midterm exam are: 93, 85, 70, 78, and 64. Calculate the mean, the variance and the standard deviation and interpret the meaning of the variance and standard deviation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT