Question: ANSWER IN JAVA IDE PLEASE 4.0 GRADING SCALE Good afternoon class, I hope everyone is doing well and is in good condition. Today we

ANSWER IN JAVA IDE PLEASE

\ANSWER IN JAVA IDE PLEASE \ 4.0 GRADING SCALE Good afternoon class,

I hope everyone is doing well and is in good condition. Today

we have a relatively simple lab that should be a fun and

quick warm up to the class. Please feel free to work with

4.0 GRADING SCALE

Good afternoon class, I hope everyone is doing well and is in good condition. Today we have a relatively simple lab that should be a fun and quick warm up to the class. Please feel free to work with your neighbor for help and you can use any online resources to help. Objective: Design and use a class containing static methods. Write a class called Student. Must contain there instance variables: First name, String. Last name, String. ID number, int. GPA, a double. Number of credits, int. Must also contain one static variable. These are shared amongst all instances of a class: Next available ID, an int. Initialize this to 1 where you declare it and add 1 when the next student requires an ID It should also have the following methods: Static method called getNextld() returns the next id currently available. It then increments this field. Each time the method is called, a new id is generated. A constructor which takes the students name fields as parameters. Names should be set from the parameters. The credits and gpa should be set to 0. The id should be set to what getNextld returns. A constructor which takes the students name fields as parameters. Names should be set from the parameters. The credits and gpa should be set to 0. The id should be set to what getNextld returns. A method called addCourse which takes the number of credits of the course (an int), and the grade the student got in the course (a String). The method to add a course should factor the grade into their GPA. To do that, weight the student's current GPA by their old number of credits, and the grade from the new course by the number of credits. For example, imagine a student's current GPA is 3.2, and they have 60 credits. If they get an A- in a 3 credit course, then their new GPA is calculated as: The 3.7 comes from the number equivalent to an A-. You can get the list of these values from the top of the page. It should then add the courses credits into the student's total. If the student has 60 credits and adds a 3 credit course, then they now have 63. A method called report() that prints a report on the student. This should take no parameters and return void. The method to print a report should print all of the student's details to the screen in a readable way. The format is up to you. A method called can Graduate() which determines if the student can graduate. To do this, it should check that the student has at least 120 credits and has a GPA of the student's current GPA by their old number of credits, and the grade from the new course by the number of credits. For example, imagine a student's current GPA is 3.2, and they have 60 credits. If they get an A- in a 3 credit course, then their new GPA is calculated as: The 3.7 comes from the number equivalent to an A-. You can get the list of these values from the top of the page. It should then add the courses credits into the student's total. If the student has 60 credits and adds a 3 credit course, then they now have 63. A method called report() that prints a report on the student. This should take no parameters and return void. The method to print a report should print all of the student's details to the screen in a readable way. The format is up to you. A method called canGraduate() which determines if the student can graduate. To do this, it should check that the student has at least 120 credits and has a GPA of at least 2.0. If so, they can graduate; if not, not. Testing You can use the StudentMain.java file to test your program. Example is at the top of the page The method to add a course should factor the grade into their GPA. To do that, weight the student's current GPA by their old number of credits, and the grade from the new course by the number of credits. For example, imagine a student's current GPA is 3.2, and they have 60 credits. If they get an A- in a 3 credit course, then their new GPA is calculated as: 3.2x60+3.7x3 60+3 The 3.7 comes from the number equivalent to an A-. You can get the list of these values from this page. It should then add the courses credits into the student's total. If the student has 60 credits and adds a 3 credit course, then they now have 63

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 Databases Questions!