Question
[C or C++] Design a C or C++ program that does the following: Determine whether a sports team manager needs to add more players to
[C or C++] Design a C or C++ program that does the following: Determine whether a sports team manager needs to add more players to make a full team or cut players from the team if there are too many.
INPUTS:
teamSize
playersOnTeam
OUTPUTS:
Number of players needed to be added, cut, or indicate that the number is correct
PROCESSING:
Read teamSize from the keyboard Read playersOnTeam from the keyboard
If playersOnTeam < teamSize Then
Display "There are not enough players" Compute how many more players are needed
Display "# more players are needed"
Else if playersOnTeam > teamSize
Display There are too many players" Compute how many more players need to be cut
Display "# players need to be eliminated"
Else
Display You have the correct number of players
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