Please write the following in full psuedocode and not C or C++. The actual progr
ID: 3771015 • Letter: P
Question
Please write the following in full psuedocode and not C or C++. The actual program isn't needed, just the psuedocode:
1. Write the pseudocode for the manager of the Jeter County softball team, who wants to compute batting averages for his players. A batting average is computed as hits divided by at-bats, and is usually expressed to three decimal positions (for example, .235). The program should prompt the user for a player jersey number, the number of hits, and the number of at-bats. The program should calculate the batting average. Once calculated, the program should print "excellent hitter", the jersey number, the batting average, number of at-bats and number of hits for all players with a batting average greater than .400. For all other players, the program should print the players jersey number and batting average. The program accepts players continuously until 0 is entered for the jersey number. Use appropriate modules, including one that displays "End of job" after the sentinel is entered for the jersey number. Hint: You should read the jersey number in the housekeeping module
Explanation / Answer
LOOP:
Print "Enter player jersey number"
JN <- (jersey number input)
IF JN == 0:
Print "End of Job"
Exit
END IF
Print "Enter number of hits"
NH <- (input number of hits)
Print "Enter number at bats"
NB <- (input number at bats)
//Calculate AVG set precision to 3 decimal places.
AVG <- NH/NB
IF AVG > .400
Print "Excellent Hitter"
Print "player jersey number = " JN
Print "Average = " AVG
Print "number at bats = " NB
Print "number of hits = " NH
ELSE
Print "player jersey number = " JN
Print "Average = " AVG
END IF
END LOOP