- This project should accomplish the following tasks:
1. Reading from a text file data13.txt (entered as an argument). The file contains names and integer scores. One name and a score per line. Names are supposed to be alphabet and scores are supposed to be integers. Assume the input file has up to 100 names and scores.
2. Scan each token from the file. If name or score is invalid, do not store them in names and scores arrays. .
3. Implement MyArrays13 class as specified in the UML diagram below. NAME IT MyArrays13.java
- name :
String
- className: String
- instructorName : String
- semesterName: String
- schoolName: String
- highestScore: int
- lowestScore:int
- averageScore: double
- size: int
- integerPattern: String
- alphbaetPattern: String “Your name>
“Your class”
“Your Instructor”
“Fall”
“Valdosta State University
-999
999
0.0
0
"^[0-9]*$"
"^[a-zA-Z]*$"
+MyArrays13()
+MyArrays13(className: String, instructorName:String, semesterName:String, schoolName:String)
+readAndStore (file:Scanner,names:String [], scores[]:int) : void
+printClass (names:String[], scores: int[], grades: char[]):void
+computeGrades (scores:int [], grades: char []):void
+highestScore (scores: int []):void
+lowestScore (scores: int []):void
+averageScore (scores: int []):void
+toString():String