Write a java program to handle applications

Assignment Help JAVA Programming
Reference no: EM131597815

Introduction

Write a Java program to handle applications for universities admission providing a much better user interface than in the program discussed in the second lecture. This program should work as an applet with the width = 700 pixels and the height = 500 pixels. The applet should run with JDK's appletviewer. If you use IDE Java environments such as DrJava make sure that at the end your code also works in JDK. If you do not have JDK working on your home PC you can always use the TEL labs PCs.

The tasks of this Java program are similar to those of the example discussed in week 2. This program should allow various users:
- to enter information for a number of candidates/students,
- to display the information about all the candidates stored
- to display the information for a certain candidate
Your Task
In this assignment class Student encapsulates the student information relevant for universities admission: student name (just the family name), highschool average and 3 universities chosen. The admission is based on the highschool average according to the following table:

University

Highschool average for admission

Toronto

90

York

84

Brock

75

Guelph

76

Waterloo

88

McGill

90

Concordia

76

Laval

78

Macmaster

82

Western

80

Based on this table a method of Student should decide the admission and the method toString() should produce a String as in the following example:
Smith, average=87, York-admitted, McGill-rejected, UofT- rejected

Class ApplicationCentre extends JApplet. At the top of the file introduce as a comment your name and student number. In this applet you have to use as a starting point CardDeck.java which is part of the Java Programs files associated with Lecture 6. This program was used to introduce the CardLayout management.
The Main Screen has on the left hand side 3 buttons presented in a column. These buttons have the labels: Input, DisplayAll, DisplayOne. The user will click on these buttons to change the panels displayed in the right hand side of the screen (using the CardDeck layout manager). The followings are the description of the right panels (the "cards"). Note that you have some flexibility in organizing the layout of each panel.
The Input panel, uses labels to prompt the user and two textfields to enter the student name and the highschool average mark. This panel also contains a JList object containing the following 10 Canadian universities: Toronto, York, Western, Brock, Guelph, Waterloo, McGill, Concordia, Laval and Macmaster. From that list the user will select 3 universities. A Button labeled "Submit" displayed at the bottom of the panel allows the user to enter the input data coming from textfields and JList object into an array with maximum 100 Student objects. Do not forget to erase the content of the textfields when the Submit button is clicked and provide a label which shows how many students were entered (for instance it should say "student 5 out of 100").
The panel DisplayAll will present the content of the array of objects using a JTextArea object. In this textarea the students are displayed with the names in ascending order (you need to sort the array of objects using the Bubble Sort algorithm). The text in the JTextArea is displayed with a Serif style font in Italic and 12-point size.
The panel DisplayOne contains at the top the label "Enter student's name" and next to that label a textfield. Below the panel contains a JTextArea, where the result of the search is displayed with in Arial style font and 14-point size. If the search for the student fails the textarea should contain the message "Student not found".

Tests
You should enter at least 3 candidates into the array of objects. Make sure that the names are not in ascending order and use highschool averages over 75. After you test the two Display panels, enter one more candidate and check the DisplayAll panel again.
Please also note that you have to submit a working code. To ensure that it is a good idea to modify the file CardDeck.java make only small changes and checking that at all times you have a working code.

Attachment:- error.rar

Reference no: EM131597815

Questions Cloud

Develop and explain a technology lifecycle model : Develop and explain a technology lifecycle model including the time and cost of development, the amount of time to recover the cost, and return on investment.
Asset qualifies as seven-year recovery asset under macrs : Genetic Insights Co. purchases an asset for $15,664. This asset qualifies as a seven-year recovery asset under MACRS. Calculate gain or loss on disposal.
What is the importance of workplace diversity training : What are the dimensions of cultural diversity? Identify and briefly explain the dimensions by referencing the text.
Investments with financial theories and corporate policies : What is the role of capital markets and investments with financial theories and corporate policies?
Write a java program to handle applications : Write a Java program to handle applications for universities admission providing a much better user interface than in the program discussed in the lecture
Compare and contrast an aspect of employment relations : Compare and contrast an aspect of employment relations in any two Southeast Asian countries. What are the causes of the differences between the two?
Discuss the nursing responsibilities and supporting rational : Discuss the nursing responsibilities and supporting rationales related to the administration of Aspart (NovoRapid) insulin to Briana via a FlexPen.
Calculate or fill in values of beginning loan balance : calculate or fill in the values of beginning loan balance, monthly payment, interest, amortization, and ending loan balance
Describe three method that can applied to protect technology : Describe three method that can be applied to protect technology and strategies that can applied to license technology in order to maximize lifecycle and profit.

Reviews

len1597815

8/11/2017 4:51:51 AM

You should enter at least 3 candidates into the array of objects. Make sure that the names are not in ascending order and use highschool averages over 75. After you test the two Display panels, enter one more candidate and check the DisplayAll panel again. Please also note that you have to submit a working code. To ensure that it is a good idea to modify the file CardDeck.java make only small changes and checking that at all times you have a working code. Marking Correct code for classes Student, 15% Correct layout of the application showing the correct GUI components in the panels 25% Correct capability in the Input panel 15% Correct Display capability (sorted data, font change) 25% Correct DisplayOne capability 20%

Write a Review

JAVA Programming Questions & Answers

  How this form may be protected from credit card frauds

Explain if replacing the fields, like social security number to credit card numbers will have any impact on the underlying codes? How this form may be protected from credit card frauds?

  Write an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You can load this data structure with 10 messages of your choosing.

  Database of the inventory of the products

COP3804 - Locate a single product and display its name, price and quantity alone -

  Write a void method that takes as a parameter

Write a Point class. A Point should have the subsequent - Write a void method that takes as a parameter an array of Lines and prints out the location of each intersection. The intersection of any two lines should only be printed once

  Create a 2-by-3 two-dimensional array of integers

Create a 2-by-3 two-dimensional array of integers and fill it with data. Loop through the array and locate the smallest value stored.

  Write a java application that allows the user to read

Write a java application that allows the user to read, validate, store, display, sort and search the account number and balance for N bank customers.

  Prepare a method that will guess the root of a number

Using binary search/interval halving, prepare a method that will guess the root of a number (JAVA)

  Design and implement an application that plays a game

Design and implement an application that plays a game called Catch-the-Creature. Use an image to represent the creature (any image you can search online).

  Design a function named "falling distance"

Design a function named "fallingDistance" that accepts an objects falling time, in seconds, as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Design a program that calls the func..

  Ticketmaster

TICKETMASTER - this class will have: a service charge = $8.00 per ticket, tax = .085 current amount of all tickets sold. Its responsibilities are printing a list of events for sale, looking up an event for a customer, and selling a ticket to the e..

  When the user presses a button

When the user presses a button, get the text from text field. Now extract the words from the text one at a time and find the largest word of length 4 or more. Let's call this largest word X for now. In response, create a question based on the length ..

  Use inheritance to read, store, and print questions for test

use inheritance to read, store, and print questions for a test. First, write an abstract class

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd