. Download the program from the instructor’s GitHub account (Ch3HW) then update it to create a class Student that includes four properties: an id (type Integer), a name (type String), a Major (type String) and a Grade (type Double). Use class Student to create objects (using buttonAdd) that will be read from the TextFields then save it into an ArrayList. Perform the following queries on the ArrayList of Student objects and show the results on the listViewStudents (Hint: add buttons as needed): a) Use lambdas and streams to sort the Student objects by name, then show the results. b) Use lambdas and streams to map each Student to its name and grade, sort the results by grade (descending), then display the results. c) Use lambdas and streams to map each Student to its name and grade, to select the Students who have grade values in the range 80 to 90. Sort the results by grade value (descending), then show the results. d) Use lambdas and streams to calculate the total average of all Students grades, then show the result. e) Use lambdas and streams to group Students by major, then show the results.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

. Download the program from the instructor’s GitHub account (Ch3HW) then update it to
create a class Student that includes four properties: an id (type Integer), a name (type
String), a Major (type String) and a Grade (type Double). Use class Student to
create objects (using buttonAdd) that will be read from the TextFields then save it into
an ArrayList. Perform the following queries on the ArrayList of Student objects and
show the results on the listViewStudents (Hint: add buttons as needed):
a) Use lambdas and streams to sort the Student objects by name, then show the results.
b) Use lambdas and streams to map each Student to its name and grade, sort the results
by grade (descending), then display the results.
c) Use lambdas and streams to map each Student to its name and grade, to select the
Students who have grade values in the range 80 to 90. Sort the results by grade value
(descending), then show the results.
d) Use lambdas and streams to calculate the total average of all Students grades, then
show the result.
e) Use lambdas and streams to group Students by major, then show the results.

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY