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 prompt_target_enrollment 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
target_year int Year to prompt for target
enrollment
ii. The function must perform the following task:
(1) Prompt the user to enter their enrollment target for the year
specified by target_year. The display message must be
formatted like:
Enter the enrollment target for the year 2040:
Use a loop to validate user input, asking the user to try again if
the entered value is non-numeric or is not greater than 0.

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 Programming Questions!