Question
A. Write program to calculate the following:
a. Students’ average score (taking into account the three weights provided above).
b. Students’ grade (A, B, C, D or F)
c. Class average (sum of all students’ average score divided by total number of students)
d. Highest students’ average score
e. Pass rate (total number of students who passed divided by the total number of students)
Assumptions:
- Grading: Assume the following grade scale: 90% - 100% (A); 80% - 89.99% (B)70% - 79.99% (C); 60% - 69.99 % (D); and 0 – 59.99% (F). Also, as per the course policy, if the student achieves less than 55% in the final exam, he will fail the course even if the average score is above 60%.
- Input Data: You may assume the following input data. Please note that the scores correspond to classwork, midterm and final exam scores, respectively (in this order).
Naji Hasan 90 85 87
Lisa Smith 80 67 70
Andy Malik 75 80 52
Ravi Gupta 90 95 98
Dave Blair 50 61 70
Sara Clark 70 65 81
Sami Moosa 55 50 71
Imed Radhi 90 83 89
Kira Sunny 65 70 69
Hind Ahmed 70 81 88
You must use arrays to store each of the above records.
Your JAVA program should output data as close as possible to the sample output.
Organization of your report:
Section 1: Problem Analysis:
In this section, you should define your input variables, and their type. You should also define your output variables and their type. Use a table to summarize your answers.
Section 2: Solution Design:
In this section you should provide a Pseudo-code or a flowchart to explain your algorithm and the logic that will drive your Java code.
Section 3: Implementation:
In this section, you should list your complete Java Code. Make sure that your code is optimized for speed and efficiency.
Section 4: Evaluation
In this section, you should include a screenshot of your program’s output, based on the sample input.
Section 5: Self-reflection
In this section, you should reflect on what you have learned in this project, and outline the challenges that you have faced while working on this project, and how you overcame them.
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
import java.util.Scanner;public class TERM_Project {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String [] firstNames = new String[10];
String [] lastNames = new String[10];
double [] classworkSocres = new double[10];
double [] midtermScores = new double[10];
double [] finalExamScores = new double[10];
double [] average = new double[10];
char [] grades = new char[10];
double classAverage = 0;
double highestScore = 0;
double passRate = 0;
Scanner console = new Scanner(System.in);
for (int i = 0; i < grades.length; i++) {...