Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming & Data Structures (C++) A basketball coach wants to implement a strategy to keep his oldest player fresh. His strategy is based on replacing

Programming & Data Structures (C++)

A basketball coach wants to implement a strategy to keep his oldest player fresh. His strategy is based on replacing the oldest player on court from the bench after he plays 10% minutes of his age.

Please refer to the images posted for the full question and guidelines.

Thank you in advance.image text in transcribed

image text in transcribed

Basketball game strategy A basketball coach wants to implement a strategy to keep his oldest player fresh. His strategy is based on replacing the oldest player on court from the Bench after he plays 10% minutes of his age. The numbers of players are from 1 to 12. A 5 will be selected randomly to play on court. Every time the time is up for the oldest, the coach will select the second bench player alternatively from left side or right side of the bench. In the same way the times up player will be added alternatively to the left or to the right of the bench. At the end of the game the coach needs a list of all the players with their numbers sorted by the minutes they played, and anther list sorted by age, number and minutes played. @@0 Classes needed: Class Player with number, age and minutes Class courtPlayer and Class BenchPlayer which inherit from Player add a status C or B' Data Structures needed: 1- The locker room where the players are waiting is an array of 12 players. 2- A sorted circular linked list of 5 players on court sorted by player number from the center 3- An unsorted doubly linked list of 7 players on the bench Basketball game strategy A basketball coach wants to implement a strategy to keep his oldest player fresh. His strategy is based on replacing the oldest player on court from the Bench after he plays 10% minutes of his age. The numbers of players are from 1 to 12. A 5 will be selected randomly to play on court. Every time the time is up for the oldest, the coach will select the second bench player alternatively from left side or right side of the bench. In the same way the times up player will be added alternatively to the left or to the right of the bench. At the end of the game the coach needs a list of all the players with their numbers sorted by the minutes they played, and anther list sorted by age, number and minutes played. @@0 Classes needed: Class Player with number, age and minutes Class courtPlayer and Class BenchPlayer which inherit from Player add a status C or B' Data Structures needed: 1- The locker room where the players are waiting is an array of 12 players. 2- A sorted circular linked list of 5 players on court sorted by player number from the center 3- An unsorted doubly linked list of 7 players on the bench

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago