Question: It's Java Programming Tasks. 10 points Question 1 Write a program to compute the following summation: 1 2 20 + ...... + 2 20 +
It's Java Programming Tasks. 
10 points Question 1 Write a program to compute the following summation: 1 2 20 + ...... + 2 20 + 1 + Question 2 10+20 + 20 = 50 points Suppose you need to write a software to maintain cricket teams in World Cup. Design a class named Player that contains: A private String data field named name that defines the name of the Player with default value null. A private int data field named ID that stores the id of the Player with default value 1. A private int data field named run that stores the total run of the Player with default value 0. A private double data field named strikeRate that defines the strikeRate of the Player with default value 0. A no-arg constructor that creates a Player with default values. A constructor that creates a Player with the specified name and ID of Player. A constructor that creates a Player with the specified name, ID, run and strikeRate. . The accessor methods for all data fields. . The method addRun(int run) that adds runs to players run. . The method toString() that returns the name, ID, run and strikeRate of the Player. a. Draw the detailed UML diagram showing all the attributes and behaviors with appropriate modifiers. b. Write the class Player according to this description. Page 1 of 2 c. Write the class testPlayer that will build a team of 11 appropriate players. First take input from user. In each case before creating the players take the player information from the user. When you are done making the complete team print highest run holder in the team with his name. [Hint: You have to use an array to hold 11 players information.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
