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

Test Plan for course grading software Software to calculate and display grades f

ID: 639047 • Letter: T

Question

Test Plan for course grading software
Software to calculate and display grades for a high school course works as follows:

The software has a Student class with the following properties:

- student number (String)

- last name (String)

- first name (String)

- an array of scores on tests 1 through 10 (array of integers)

- final grade (double)

The Student class has constructors, get and set methods for each property, and the following:

- a method to let the teacher input a grade for a single test

- a method to calculate the final grade (an average of all 10 tests)

- a method to display a histogram (bar chart) of all 10 test scores grades for any student

The method that prints a histogram calls the histogram() method from the exisiting DataGraph Class which has been professionally validated.

All test score and the final grade are integers between 0 and 100 (0 <= n <= 100).
The main method for the software ties everything together. The class that contains the main method,

the Grading class, has an array of student objects and the following methods:

- a method with a menu for the teacher that calls other methods in the Grading class or Student class as needed. It also has an option to close the program

- a method that loads the array of Student objects from a data file

- a method to save the array of student objects to a data file

- a method to display results for any test or the final grade as a table, sorted by last name

- a method to display the grade distribution for any one test as a pie chart

The method that prints a pie chart calls the pieChart() method from the exisiting DataGraph Class which has been professionally validated.

Follow the outlined requirements. You should submit a word document with the testing plan.

Explanation / Answer

import javax.swing.*; import java.util.*; import java.text.*; public class assignment6 { public static void main (String[] args) { String continueOption; do { int n = 1; int pupils = 1; int [] scores = new int [10]; String msg1 = "How many students are there in the class?"; String msg2 = "Please input a positive number."; String msg3 = "Would you like to input numbers from the Console" + "or have the computer Randomly generate for you?" + " " + "(Enter "C" for Console Input or "R" for Random Generation)"; String msg4 = "Would you like to repeat? (Y/N)"; String msg5 = "Thank you for using this Teaching Aid." + " " + "We hope all your students were paying attention and passed." + " " + "Have a great summer, Professor Gordon!"; do { pupils = Integer.parseInt(JOptionPane.showInputDialog(msg1)); if (pupils
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