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...

Word's Styles group in the HOME tab contains buttons to format a list with bullets or numbers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

During what step of the employee life cycle are employees added to the organization’s benefit system?

A) Recruitment B) Onboarding C) User provisioning D) Orientation

Computer Science & Information Technology

________ is an embedded version of Linux that runs on many phones and tablets

A) iOS B) Blackberry OS C) Android D) Windows Embedded CE

Computer Science & Information Technology

Within a dialog box, the user can adjust a number of settings

Indicate whether the statement is true or false

Computer Science & Information Technology