Question
A competition takes place for the development of a new functionality that will be added on the NBA daily stats. This new functionality will show
A competition takes place for the development of a new functionality that will be added on the NBA daily stats. This new functionality will show the player with the maximum ratio of points per minute.
Develop a program in C++ that prompts the user to enter data for a number of NBA players and then outputs the player(s) with the maximum ratio of points per minute.
You can store the players entered by the user in an array of structs with dynamic array of structs.
Sample prompts:
How many players will you enter? 2
Enter first name: LeBron Enter last name: James Enter points: 30.5 Enter minutes: 37.8
Enter first name: Giannis Enter last name: Antetokounmpo Enter points: 23.5 Enter minutes: 34.8
The maximum ratio of points per minute is: 0.81 Players with maximum ratio of points per minute: Lebron James
*Must declare constant integer, Assume each data entered by user won't contain any spaces, program must stop prompting for further input if the max number of players is reached, Data type for points should be double, have three functions (1. read players' data into an array, 2. find max radio of points per minute 3. print names of players with max ratio)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started