Question: Student GradesGiven the Student Class, do the following:Steps: Create private fields for String firstName, String lastName, and double gradePercentage Declare Mutators and Accessors for each

Student GradesGiven the Student Class, do the following:Steps:
Create private fields for String firstName, String lastName, and double gradePercentage
Declare Mutators and Accessors for each (Setters and Getters)
Create a public method called describe()to print the following:"Student:
"+ this.firstName +""+ this.lastName +"
Grade Percentage: "+ this.gradePercentage
import java.io.*;
import java.util.*;
import java.text.*;
public class CodingQuestion {
public static class Student {
// Write your code here
}// end of Student Class
/***** DO NOT CHANGE THE CODE BELOW THIS LINE *****/
public static void main(String[] args){
Scanner in = new Scanner(System.in);
String firstName = in.nextLine();
String lastName = in.nextLine();
double gradePercentage = in.nextDouble();
Student student = new Student();
student.setFirstName(firstName);
student.setLastName(lastName);
student.setGradePercentage(gradePercentage);
// second way to get student information:
student.describe();
}// end of main()
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!