Question
C++ PROGRAM. Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9).
C++ PROGRAM.
Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers in one int array and the ratings in another int array. Output these arrays (i.e., output the roster). (3 pts)
Ex:
Enter player 1's jersey number: 84
Enter player 1's rating: 7
Enter player 2's jersey number: 23
Enter player 2's rating: 4
Enter player 3's jersey number: 4
Enter player 3's rating: 5
Enter player 4's jersey number: 30
Enter player 4's rating: 2
Enter player 5's jersey number: 66
Enter player 5's rating: 9
ROSTER
Player 1 -- Jersey number: 84, Rating: 7 Player 2 -- Jersey number: 23, Rating: 4 ...
I have trouble defining jerseys from 0-99 and ratings from 1-9. My program lets me enter any number for the jerseys and for the ratings.
What code should I use to define the limits if I am using:
#include
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