Produce a string - organizing the layout of each panel

Assignment Help JAVA Programming
Reference no: EM131596834

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, , 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 four textfields to enter the student name, 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".

Reference no: EM131596834

Questions Cloud

Describe key information of five substantive sources : Identifies and describes key information of at least five substantive sources of background information on the market domain of your choosing.
Practice management software improves claim management : Explain how the icons available in Practice Management software make claim management easier and more accurate.
How well is your community prepared for a potential outbreak : Choose a potential infectious disease outbreak and discuss how a CHN can help to prevent or respond to an outbreak.
Define your professional goals : Define your professional goals. Where do you see yourself professionally in the long-term (10 years from now)? Where do you see yourself in the short-term?
Produce a string - organizing the layout of each panel : Based on this table a method of Student should decide the admission and the method toString() should produce a String
Discuss an organization internal processes and operations : What role does strategic planning play in IS/IT investments? Is this something that can be easily adjusted when necessary? Why or why not?
Calculate the standard deviation of the project : Using net present value, advice the company on whether or not to continue with the project. Calculate the standard deviation of the project
Describe the scope and analyze how to control the scope : This assignment consists of two (2) sections: a business requirements document and a Gantt chart or project plan. You must submit both sections as separate.
Discuss measurement methods for your proposed study : Discuss measurement methods for your proposed study. Include a discussion on reliability, validity, scoring and level of measurement of the instruments.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program in java to read 5 integers

Write a program in Java to read 5 integers and print their sum and average.Use loop statements in your code - Write a program in Java to read 5 integers

  Inheritance involves the concept of super class

Inheritance involves the concept of super class (parent class) and sub class (derived class). What is a super class in Java? What is a sub or derived class in Java?

  Develop a java based gui application using swing that

develop a java based gui applicationusing swing that allows the user to enter charityfund informationwrite the

  Implementing a railroad yard simulation program

Implementing a railroad yard simulation program. The user will provide a set of incoming cars, and then a desired outgoing order

  Develop a trivial console-based interactive question

COS30016/HIT3037 Programming in Java - Develop a trivial console-based interactive question and answer (aka Multiple Choices Question - MCQ) application. This application allows users to create, manage and attempt multiple choice questions. The use..

  Program that prompts the userto enter a credit card

Write a program that prompts the userto enter a credit card number as a long integer. Display whether the number isvalid or invalid.

  What will the code fragment do

What will the following code fragment do

  Display a welcome message to your user

Write a one screen description of your initial reactions to Java. Reactions may be both positive and negative. At the end of this module you will be asked to write a reply to these initial reactions.

  Describe the equivalence classes

Prove that these relations on the set of all functions from Z to Z are equivalence relations. Describe the equivalence classes.

  Describe the multithreading

Describe multithreading and list the reasons for using multithreading

  Draw a uml diagram of each of the shapes

Draw a UML diagram of each of the Shapes, Rectangle and Square classes using the code that has been provided. Complete this using the examples that have been provide in the lecture slides - Sample program is provided that creates a list of shapes ..

  Create a version of the game of nim that you can play

Create a version of the game of Nim that you can play against the computer. Use a JavaScript prompt() to prompt the user to select a pile and number of stones to remove from the pile.

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