PROGRAMMING:Statistics of the number of pass and fail in score entry
Write a program for a class of a course score entry, can control the total number of entry score, the entry score statistics of the number of pass and fail. Design an exception class. When the input score is less than 0 or greater than 100, throw the exception class object. The program will catch the exception object and call the toString () method to execute the exception class object. This method gets the current invalid score value and returns a string with an invalid score.
###Input format:
Enter the number of students from the keyboard
Enter the grade of the first student from the keyboard
Enter the grade of the second student from the keyboard
...
Enter the score of the nth student from the keyboard
(Note: when the score entered is invalid (i.e. the score is less than 0 or greater than 100), you can re-enter it, and the output terminal will output a reminder that the score is invalid.)
###Output format:
Show the total number of pass
Show the total number of failed students
###Input example:
Here is a set of inputs. For example:
```in
three
one hundred
thirty
sixty
```
###Output example:
The corresponding output is given here. For example:
```out
two
one
```
###Input example:
Here is a set of inputs. For example:
```in
two
two hundred
sixty-nine
thirty
```
###Output example:
The corresponding output is given here. For example:
```out
200invalid!
one
one
```
answer:If there is no answer, please comment
###Input format:
Enter the number of students from the keyboard
Enter the grade of the first student from the keyboard
Enter the grade of the second student from the keyboard
...
Enter the score of the nth student from the keyboard
(Note: when the score entered is invalid (i.e. the score is less than 0 or greater than 100), you can re-enter it, and the output terminal will output a reminder that the score is invalid.)
###Output format:
Show the total number of pass
Show the total number of failed students
###Input example:
Here is a set of inputs. For example:
```in
three
one hundred
thirty
sixty
```
###Output example:
The corresponding output is given here. For example:
```out
two
one
```
###Input example:
Here is a set of inputs. For example:
```in
two
two hundred
sixty-nine
thirty
```
###Output example:
The corresponding output is given here. For example:
```out
200invalid!
one
one
```
answer:If there is no answer, please comment