X1182: Codewit Jessica: C++ Variables for Soccer Players

Write a program that stores the following information about a soccer player in variables with the following identifiers and corresponding values:

  • shirtNum has the player's jersey number, 4
  • lastName has her last name, "martinez"
  • inGame says whether or not she is currenty playing, or true
  • average represents the points she scores per game, 1.52
  • grade stores the letter grade of her performance, 'A'

The program should then display those variables' values in a message following the template:

The player lastName who has the number shirtNum has an average of average which allows her to have a grade of grade

inGame

Complete the code within the brackets ({ }) below.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.