solution

To encourage good grades in MIS, we decided to award each student a bookstore credit that is 10 times the student’s grade point average.

.

In other words, a student with a 3.2 grade point average receives a $32.0 credit

Create an new project in IntellijIDEA using java

In the project, write an application that

.

1) In the Main method prompts a student for a name and grade point average

a. and then passes the 2 values to a static method (computeCredit) that displays a descriptive message.

b. The message uses the student’s name, echoes the grade point average, and computes and displays the credit.

An example of the output is shown below:

Enter your name >>

Laura Enter your gpa >>3.4

Laura, your GPA is 3.4, so your credit is $34.0

2) In the same Main method also prompts a student for a name, grade point average, and semester

a. And then overload the static method (computeCredit) by passing in the 3 values.

b. In the computeCredit that hold the 3 values

i. Create a new constant that holds the integer 10 1. Use this constant to multiply with the grade point average to get the credit

c. If the student’s GPA is < 2.0 i. Output the student’s name, semester, echoes the grade point average, computes and displays the credit, print ‘your GPA need improvement’

d. If the student’s GPA is > 2.0 i. Output the student’s name, semester, echoes the grade point average, computes and displays the credit, print ‘your GPA is above average’

e. If the student’s GPA is = 3.0 i. Output the student’s name, semester, echoes the grade point average, computes and displays the credit, print ‘your GPA is a B’

An example of the output is shown below:

Enter your name >> Laura

Enter your gpa >>3.4

Enter your semester >>Fall

Laura, your GPA is 3.4, your semester is Fall, your credit is $34.0, and your GPA need improvement

Include a line of comment that explains the purpose of each statement within the methods

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp