Python 3.5 URGENT HELP NEEDED Main.py https://pastebin.com/GGMQUsix Student.py h
ID: 3813545 • Letter: P
Question
Python 3.5
URGENT HELP NEEDED
Main.py
https://pastebin.com/GGMQUsix
Student.py
https://pastebin.com/DtQKeuzk
classlist.txt:
https://pastebin.com/aHJ7yHma
exam.txt:
https://pastebin.com/ZjKPsyv7
exam2.txt:
https://pastebin.com/QkDgAK2g
solution.txt:
https://pastebin.com/wHTfWYzV
All changes must be made to Main.py
You are required to complete the display_result(claslist)function which takes a class list and prints the marking result for all students in the class list. If the forth option of the menu, i.e., ‘Display the Marking Result’, is selected, the program should display the marking result.
Here's a sample running of this section using the “exam.txt” data file:
...
---------------------------------------------------
Enter your choice: 4
---------------------------------------------------
N00000001: John, john@amail.com, marks: [4]
N00000002: Kelly, kelly@bmail.com, marks: [5]
N00000003: Nicky, nicky@cmail.com, marks: [4]
N00000004: Sam, sam@dmail.com, marks: [6]
N00000005: Adam, adam@amail.com, marks: [4]
Here's a sample running of this section after TWO exams have been marked:
...
---------------------------------------------------
Enter your choice: 4
---------------------------------------------------
N00000001: John, john@amail.com, marks: [4, 5]
N00000002: Kelly, kelly@bmail.com, marks: [5, 7]
N00000003: Nicky, nicky@cmail.com, marks: [4]
N00000004: Sam, sam@dmail.com, marks: [6, 2]
N00000005: Adam, adam@amail.com, marks: [4, 5]
You are required to complete the display_summary(marks) function which takes a list of marks and prints the marking summary of the exam. If the fifth option of the menu, i.e., ‘Display the Marking Summary’, is selected, the program should display the marking summary of the exam. The function should compute the following statistics after you've done the marking of the exam:
* the total number of students represented in the data file
* the highest score
* the lowest score
* the average score (mean)
Here's a sample running of this section using the “exam.txt” data file:
...
---------------------------------------------------
Enter your choice: 5
---------------------------------------------------
Grade Summary:
Total number of Students: 5
Highest Score: 6
Lowest Score: 4
Mean: 4.6
Here's a sample running of this section using the “exam2.txt” data file:
...
---------------------------------------------------
Enter your choice: 5
---------------------------------------------------
Grade Summary:
Total number of Students: 4
Highest Score: 7
Lowest Score: 2
Mean: 4.75
Explanation / Answer
import java.io.*;
class FIFO
the amount of inputs :”);
n=Integer.parseInt(br.readLine());
int inp[]=new int[n];
System.out.println(“Enter the inputs:”);
for(int i=0;i<n;i++)
inp[i]=Integer.parseInt(br.readLine());
System.out.println(“—————“);
for(int i=0;i<3;i++)
fifo[i]=-1;
int Hit=0;
int Fault=0;
int j=0;
boolean check;
for(int i=0;i<n;i++)
if(check==false)
}
System.out.println(“HIT:”+Hit+” FAULT;”+Fault);
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.