Question: Write a class in Tran called Student . The student has 5 members first and last name, which are strings and three grades which are
Write a class in Tran called Student The student has members first and last name, which are strings and three grades which are numbers. Create a constructor for Student which takes parameters to populate all members. Note that Tran has no this so name the parameters something different. Create a method called getAverage which takes no parameters and returns a number. This method should sum the three grades and divide by Create a method called print this method should print the first & last name and the average by calling getAverage Create a shared method called start. This method should create students and call print on each one.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
