Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer in java Part 3 In the Basketball Player class, create a method named get Value that examines the values the instance variables and

image text in transcribed

please answer in java

Part 3 In the Basketball Player class, create a method named get Value that examines the values the instance variables and returns an integer value determined according to Figure 1. Use a branching technique (e.g. if- statements, switch statements) when implementing the method. Position Other conditions Value Center height >= 82, weight between 220 and 250, ball handling > 5 10 Center height >= 80, weight between 210 and 260, ball handling > 5 8 Center height >= 80, ball handling > 4 6 Center height >= 78, agility> 7 5 Center height >= 78 4 Center height >= 76, agility > 5 2 Center 0 Forward height >= 80 and either agility > 8 or speed > 7 10 Forward height >=78, agility > 6, speed > 5 8 Forward height >= 77, agility > 5 6 Forward height >= 76, speed > 4 5 Forward height >= 75 and either agility > 3 or speed > 3 3 Forward height >= 74 1 Forward 0 Guard height >= 78, ball handling > 7 and either agility or speed > 7 10 Guard height >= 76, ball handling > 7 and either agility or speed > 6 8 Guard height >= 74, ball handling > 5, agility > 5, speed > 6 6 Guard ball handling > 6, agility > 6, speed > 5 4 Guard ball handling > 4, agility > 4 2 Guard 0 NOTE: empty "other conditions mean "any values, these would be used in else clauses. Figure 1: Basketball Player get Value Method Implementation Information Part 4 In the BasketballPlayer class, create a toString which returns the name, position, team and the value returned from the get Value method in Part 3. Part 5 Create a class named College BasketballPlayer that extends BasketballPlayer. The class should have two private instance variables: eligibility Remaining (int) role (String) Get and set methods should be created for each variable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

Contrast feedforward, concurrent, and feedback controls.

Answered: 1 week ago