Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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".

Java, Programming

  • Category:- Java
  • Reference No.:- M92405547
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As