You are on page 1of 4

Partial 02

Task description
Make an application that receives 3 arrays of the same size from the user interface (one text
field for each array, where elements are divided by a comma). Array A is a list of students’
names, array B is a Boolean which shows if students have received their student card or not.
Array C is their average score which is a type double. (Make a label for each one)

After pushing the button:


Show a list of students that have student card and their average is higher than 4,5.
Show an average of the scores of all students.
To add text to text area use textArea.append(“Your text”);
https://docs.oracle.com/javase/tutorial/uiswing/components/textarea.html
Task to do in the class
Add the second button that adds in other text area the names who are ended with ‘a’ (suppose
feminine names are ended with ‘a’)

Add a button that shows the results in a JOptionpane : divide each grade into a integer and
decimal part and show

Round the scores to floor if les than or igual 1.5,2.5,3.5,4.5, round them up if higher

You might also like