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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!