Question
Write a java program that prints students name, grades and GPA. You must do the following requirements: Create three methods: First method to accept and
Write a java program that prints students name, grades and GPA. You must do the following requirements:
Create three methods:
First method to accept and print your first, last name, and GPA.
Second method to accept and print your grades of three courses (type: int)
Third method to overload the second method (types: double). The method must print your grades.
Call the three methods you created above in your main method.
Create a method without parameters that would return only your GPA. The method should be named with your last name followed by GPA (e.g., AlwalledGPA()).
Declare a double variable that holds the returned value of the last method you created.
Print the value of your GPA variable.
Note:
The class name of your Java program must be your first name. >>>>> Name/ Zakaria
Your answer should have the code as text as well as the screenshot of the program output (using your own name) as a part of your answer. Otherwise, zero marks will be awarded.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started