
Can you help me please...
Write a Java application, to be called GpaCalculator, which will return a grade point average (GPA) when given a range of decimal figures representing a selection of exam marks. The GpaCalculator should assign a GPA value to each exam mark, and then calculate the average grade point value for all the marks entered. The GPA points for individual marks are given below:
(i) A mark ranging from 90 to 100% is awarded a GPA of 4.0 (ii) A mark ranging from 80 to 89%: is awarded a GPA of 3.5. (iii) A mark ranging from 70 to 79%: is awarded a GPA of 3.0. (iv) A mark ranging from 60 to 69%: is awarded a GPA of 2.5. (v) A mark ranging from 55 to 59%: is awarded a GPA of 2.0. (vi) A mark ranging from 50 to 54% is awarded a GPA of 1.5. (vii) A mark ranging from 45 to 49% is awarded a GPA of 1.0. (viii) A mark below from 45% is awarded a GPA of 0.
The GpaCalculator application should prompt the user to enter a series of integer or decimal values ranging from 0 to 100. These values should be entered one at a time and, if a value of ââ?¬Å?-1ââ?¬Â? is entered, then the GpaCalculator application should terminate. Here is an example of the GradeClassifierââ?¬â?¢s input and output for valid data:
Example of GpaCalculator�s output for valid input :
Enter a mark between ââ?¬Å?0ââ?¬Â? and ââ?¬Å?100ââ?¬Â? or ââ?¬Å?-1ââ?¬Â? to exit: 91 Total number of marks entered so far: 1. GPA = 4.0 Enter a mark between ââ?¬Å?0ââ?¬Â? and ââ?¬Å?100ââ?¬Â? or ââ?¬Å?-1ââ?¬Â? to exit: 89 Total number of marks entered so far: 2. GPA = 3.75 Enter a mark between ââ?¬Å?0ââ?¬Â? and ââ?¬Å?100ââ?¬Â? or ââ?¬Å?-1ââ?¬Â? to exit: -1 Total number of marks entered: 2. GPA = 3.75. Application terminated.
NOTE: The GpaCalculator application should also respond appropriately to invalid input (by displaying an error message if the user enters a number which is below -1 or above 100). The deadline submission date for this assignment is November 8, 2011. Late submissions will be penalized.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.