Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Program Description In this assignment, you will develop a Console based Grading

ID: 441845 • Letter: P

Question

Program Description In this assignment, you will develop a Console based Grading application. This application will calculate the grade of 11 students based on their scores in exams and homework. It will also calculate the maximum of the exam and homework scores. Operation The application does the following: 1. generates random exam score in the range [0, 200] for 11 students and stores it in an array of integers. See the Implementation Details below for information about how to generate random numbers in Java. 2. generates random homework scores in the range [0,100] for 11 students and stores it in an array of integers. 3. computes the total score of each student based on the following formula: totalScore = (75 x exam/ 200) + (25 x hw/ 100) 4. determines the grade the student earns given the following grading scheme. The grading scheme is: A: >= 80, B: [60, 80), C: < 60. Note that B:[60, 80) means a student gets a B if his score is >= 60, but strictly less than 80. 5. displays the students

Explanation / Answer

import java.util.*;public class StudentResult{String studentID;String name;double assignment;double presentation;double test;double exam;double total;String grade;public void setStudentID(String studentID){this.studentID=studentID;}public String getStudentID(){return studentID;}public void setName(String name){this.name=name;}public String getName(){return name;}public void setAssignment(double assignment){this.assignment=assignment;}public double getAssignment(){return assignment;}public void setPresentation(double presentation){this.presentation=presentation;}public double getPresentation(){return presentation;}public void setTest(double test){this.test=test;}public double getTest(){return test;}public void setExam(double exam){this.exam=exam;}public double getExam(){return exam;}public void setTotal(double total){this.total=total;}public double getTotal(){return total;}public void setGrade(String grade){this.grade=grade;}public String getGrade(){return grade;}public static void main(String[]args){Scanner input=new Scanner(System.in);int menu = 0;System.out.println("Student Result");System.out.println();System.out.println("1. Add a student");System.out.println("2. Exit");boolean quit = false;do{System.out.print("Please enter your choice: ");menu = input.nextInt();System.out.println();switch(menu) {case 1:StudentResult data[]=new StudentResult[2];for (int i=0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote