Add another constructor for the Student class that takes a name and a num- ber which is the number of grades this student will have. It should create the gradeArray based on the passed number of grades.

What will be an ideal response?

```
/**
* Cons t ruc tor t h a t t a k e s a name and
* the number of g rade s
* @param theName the s tud ent ' s name
* @param numGrades the number of g rade s
*/
public Student ( St r ing theName , int numGrades )
{
this . name = name ;
this . gradeArray = new double [ numGrades ] ;
}
```

Computer Science & Information Technology

You might also like to view...

What are the advantages of customizing the startup options of a database?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is a new feature of iOS 5?

a. Ability to run native PC applications b. Ability to perform untethered updates c . Ability to dual boot the Android OS d. Ability to perform iTunes backups

Computer Science & Information Technology