Question: Implement the prompt _ target _ enrollment function to prompt the user for the number of students to be enrolled in the target year. i
Implement the prompttargetenrollment function to prompt the user
for the number of students to be enrolled in the target year.
i The function must have the following parameter:
Parameter Name Type Description
targetyear int Year to prompt for target
enrollment
ii The function must perform the following task:
Prompt the user to enter their enrollment target for the year
specified by targetyear. The display message must be
formatted like:
Enter the enrollment target for the year :
Use a loop to validate user input, asking the user to try again if
the entered value is nonnumeric or is not greater than
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
