Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

app.java (initial application) MainFrame.java (external JFrame) ControlPanel , a Java class for the panel that will contain two other panels, using a layout. TopPanel ,

app.java (initial application) MainFrame.java (external JFrame) ControlPanel, a Java class for the panel that will contain two other panels, using a layout. TopPanel, a Java class for the Panel that will display the groups name and group's average GPA CenterPanel, a Java class for the Panel that will display names and semester GPAs of the 4 students in a group. group.java and student.java (a working version from previous labs, might need updates, see important #2 below). Students should apply consistent indenting in all submissions. This can be done via the NetBeans Source menu. Contents You can start with this NetBeans project. You will create 3 panels and one group object. One panel contains two other panels. On a top panel you will display the group's name and average GPA. The center panel will contain 4 buttons displaying the group 4 students name and GPA. Important - #1 - The single group object You will create only one group object g1 in this assignment. There will be only one statement group g1 = new group(...); in the whole application. Since two panels need to be used, g1 will need to be created somewhere and then pass the object g1 as a parameter to other classes. Important - #2 - GPA Calculation Your previous group/student solution might be working this way; otherwise, you will need to updated it. Because GPA is calculated randomly in student, depending how you calculate it there is a chance that the average group GPA will not match with the displayed sum of each student's GPA. In order to fix this, you need to: in group: o semesterGPA is calculated using the GPA attribute in student, not the semesterGPA() method in student in student: o it needs GPA as an attribute o the attribute GPA is calculated in the constructor, when the student is created, calling the semesterGPA() random method o the semesterGPA() method, whenever it is called, updates the value of the attribute GPA

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

Step: 3

blur-text-image

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

The models used to analyse different national cultures.

Answered: 1 week ago

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago