Using a Generic class that implements the Comparator interface, write a working program that compares the performance of any two IPL teams in terms of the following: 1) Points per match= PTS/PLD 2) Form= (# of Ws)/3 3) Net Run Rare= Net RR You can use the following data to make comparisons between any two teams of your choice: You can hard code the data associated with the two teams you have chosen. Hence, no need to take any inputs from the user. Upon running the program, the program should simply output the three comparison results. Additionally, please mention the names of the two chosen teams in the beginning of the program in a comment.

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

Using a Generic class that implements the Comparator interface, write a working
program that compares the performance of any two IPL teams in terms of the following:
1) Points per match= PTS/PLD
2) Form= (# of Ws)/3
3) Net Run Rare= Net RR
You can use the following data to make comparisons between any two teams of your
choice:

You can hard code the data associated with the two teams you have chosen. Hence, no need
to take any inputs from the user. Upon running the program, the program should simply
output the three comparison results.
Additionally, please mention the names of the two chosen teams in the beginning of the
program in a comment.

TEAM
PLD
NET RR
PTS
FORM
DC
14
+0.481
20
L
W
CSK
14
+0.455
18
L
LL
RCB
14
-0.140
18
Lw
KKR
14
+0.587
14
W
L
MI
14
+0.116
14
W wL
PBKS
14
-0.001
12
Lw
RR
14
-0.993
10
L
SRH
14
-0.545
6
L wL
Transcribed Image Text:TEAM PLD NET RR PTS FORM DC 14 +0.481 20 L W CSK 14 +0.455 18 L LL RCB 14 -0.140 18 Lw KKR 14 +0.587 14 W L MI 14 +0.116 14 W wL PBKS 14 -0.001 12 Lw RR 14 -0.993 10 L SRH 14 -0.545 6 L wL
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

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