Java: Student GPA Evaluator

This lab puts together everything you have learned until now: communication between classes, the creation and display of graphical components, and tracking of user interaction. Although it is work-intensive, you should be able to handle all the requirements.

What Will You Learn
Communication between classes
Use of graphical components
Deliverables

Don't use plagiarized sources. Get Your Custom Essay on
Java: Student GPA Evaluator
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

Students should apply consistent indenting in all submissions. This can be done via the NetBeans Source menu.

Requirement for Starting the Lab

You need to use this NetBeans project.

app class

public class app

{

public static void main(String args[])

{

MainFrame mjf = new MainFrame();

}

}

Right Panel:

import java.awt.*;

import javax.swing.*;

public class RightPanel extends JPanel

{

JButton b1;

public RightPanel()

{

super();

setBackground(Color.pink);

b1 = new JButton(“Just a place holder. You might need me or not ¯\\_(ツ)_/¯ “);

add(b1);

}

}

Main Frame:

import java.awt.*;

import javax.swing.*;

public class MainFrame extends JFrame

{

ControlPanel control;

public MainFrame()

{

super(“Lab 08 Starter”);

MacLayoutSetup();

control = new ControlPanel();

getContentPane().add(control, “Center”);

setDefaultCloseOperation(EXIT_ON_CLOSE);

setSize(1200, 600);

setVisible(true);

}

public void MacLayoutSetup()

{

// On some MACs it might be necessary to have the statement below

//for the background color of the button to appear

try

{

UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());

} catch (Exception e)

{

e.printStackTrace();

}

}

}

Left Panel:

import java.awt.*;

import javax.swing.*;

public class LeftPanel extends JPanel

{

JButton b1;

public LeftPanel()

{

super();

setBackground(Color.LIGHT_GRAY);

b1 = new JButton(“Just a place holder. You might need me or not ¯\\_(ツ)_/¯ “);

add(b1);

}

}

Control Panel:

import java.awt.*;

import javax.swing.*;

public class ControlPanel extends JPanel

{

RightPanel right;

LeftPanel left;

public ControlPanel()

{

super();

//needs a layout

setBackground(Color.DARK_GRAY);

right = new RightPanel();

left = new LeftPanel();

add(left, “North”);

add(right, “Center”);

}

@Override

public void paintComponent(Graphics g) //just an example of how to use paintComponent

{

super.paintComponent(g);

Font f1 = new Font(“Lucinda”, Font.BOLD, 30);

g.setFont(f1);

g.setColor(Color.white);

g.drawString(“This panel will need a Layout”, 100, 200);

}

}

You will also need a student class from your previous labs.

Contents

The user will type in some data on the left panel. When the user clicks on the “OK” button, the typed data will be transferred to the right panel. Then a student object will be created, the student’s information will be displayed including an evaluation of the student’s GPA.

Lab 08 Demo (0:52):

Specific Requirements
1- Layout
The lab needs a layout in control panel with a panel on the left where the data will be typed in and a panel on the right where the data will be displayed.
The layout of panel left and of panel right should be very similar to the picture above. Very little differences are expected due to the use of different operating systems.
2- Content of Panels
Control Panel:
Has two panels (left and right) already created in the starter NetBeans package.
Left panel:
Two labels with the description of what needs to be typed for first name and last name.
It has to ask for first name and last name using JTextFields.
A label asking for the age.
It asks for the student’s age using a JSlider.
A button to display the student’s GPA.
A button to generate a random GPA.
A message button.
An OK button.
Right panel
It has a button that will display the students’ information.
It has a button to display the student GPA’s assessment.
3- Listening requirements
The OK button has to be listened in the right panel. This means that the right panel will implement the ActionListener that will be used when OK is pressed.
The listener for the GPA button has to be implemented in the left panel. This means that the left panel will implement the ActionListener that will be used when the “GPA Calculator” button is pressed.
4- Scenarios…
All the information is correct
The user types the first name
The user types the last name
The user chooses an age
The user presses the “GPA Calculator” button
The GPA is displayed on the GPA button
The OK button is pressed…
the student information is displayed on the big button on the right panel
the GPA assessed and a message is displayed in the small button on the right panel
All the information is correct
The calculated GPA is…
between 0 and 1.00…
* the GPA assessment button on the right panel becomes red.
between 1.01 and 2.00…
* the GPA assessment button on the right panel becomes pink.
between 2.01 and 3.00…
* the GPA assessment button on the right panel becomes orange.
between 3.00 and 3.50…
* the GPA assessment button on the right panel becomes green.
greater than 3.50…
* the GPA assessment button on the right panel becomes green.
* the message “You made the Dean’s List !!!!!” is displayed on the GPA assessment button.
Some information is missing
The user does not type the first name or the last name.
The OK button is pressed.
A message saying “Student name cannot be blank.” is displayed on the message button…
* “ERROR” is displayed on both buttons in the right panel.
Some information is missing
The user does not ask the GPA to be calculated (GPA value is still zero).
The OK button is pressed.
A message saying “Calculate the GPA before submitting.” is displayed on the message button…
* “ERROR” is displayed on both buttons in the right panel.

Graduate Homework
Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Papers are written from scratch We have molded our writers to develop content for all assignments from scratch. This way, we promote originality and reduce cases of plagiarism that might affect your grades and hinder you from realizing your academic goals. We encourage our clients to indicate the deliverables that should be featured in the final paper. Our online help services allow one to make a clarification and even interact with the writer directly to help them understand the needs of the assignment. Many of our writers are professional tutors who understand the approaches that should be used to fulfill the specified instructions. Every time a client places an order on our system, we link them with the most qualified writer in the subject of interest.

Money-back guarantee

YUnlike other writing companies, we encourage clients to draw back their money at any stage of the writing process if they experience any uncertainties with the quality of generated content. However, you will hardly have to make this decision because of our business approach that suits your needs.

Zero-plagiarism guarantee

We have an advanced plagiarism-detection system that flags any work that fails to meet the required academic expectations. Our company thrives in honesty, and as such, you will be guaranteed to achieve a paper that meets your expectations.

Free-revision policy

We encourage our clients to return papers for revision seven days after the last submission for free. Depending on the proposed changes, we will work on your article to achieve the desired expectations.

Privacy policy

We uphold confidentiality and privacy through our interactions with clients, an aspect that has enhanced our relationship with prospective customers seeking for assignment help. We do not disclose your information with third-parties

Qualified Writers

We boast of a diverse pool of ENL and ESL professionals who respond with a personal touch to the needs of every client. Our focus is to become the best platform that offers specialized services to individuals to accomplish their academic goals.

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency