3 question Java problem
$30-5000 USD
Maksettu toimituksen yhteydessä
This is a two part question that for a project I am working on. I have a start but need some help.
## Deliverables
**Question #1:**
Design and implement a class **Grade** that defines attributes (instance fields) for student name, midterm grade, and final grade. It also defines one method to retrieve the name, midterm, and final grade, and another method to calculate the letter grade using the following scale:
A, if average of midterm and final grades>=90 B, if average of midterm and final grades>=80 but less than 90 C, if average of midterm and final grades>=70 but less than 80 D, if average of midterm and final grades>=60 but less than 70 F, if average of midterm and final grades is less than 60.
**Question #2**
Design and implement a class **Sorter** that define an array as an instance field to hold **grade objects** and defnes the following methods:
* a method to find the maximum midterm grade
* a method to find the minimum final grade
* a method to print out number of A, B, C, D, and F grades in a tabular format (see example below) from a collection of Grade objects
| **Grade** | **Number** |
| A | # of A grades |
| B | # of B grades |
| C | # of C grades |
| D | # of D grades |
| F | # of F grades |
Write a test class **SorterTest** by using the following data:
| Name | Midterm | Final |
| -------- | ------- | ----- |
| Kim | 70 | 90 |
| Brian | 89 | 75 |
| John | 58 | 70 |
| Adam | 69 | 64 |
| Joshua | 58 | 55 |
| Mary | 34 | 80 |
| Jordan | 84 | 91 |
| Leann | 93 | 98 |
| Jennifer | 79 | 83 |
| Kevin | 90 | 78 |
| Milan | 90 | 93 |
## Platform
This will be used in a windows environmrnt using JGrasp
Projektin tunnus: #3241523