Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions