Question: this is supossed to be done with Python! thank you Assignment You will write a Python program to calculate the percentage of college undergraduate students

Assignment You will write a Python program to calculate the percentage of college undergraduate students at different class years (categories): freshman, sophomore, junior, and senior. 1) First, an end user inputs positive integers for these four numbers. 2) Then, the program calculates the total number of students by getting the sum of all these four values 3) Next, the program will display the total number of students. 4) Followed by the first output, i.e. the total number of students, the program calculate the percentage of these four values. Make sure all these four numbers are obtained from the user and the total number is calculated. 5) Finally, the program will display the percentages of students for the four class years (categories). Look at the following example: Please enter the count of freshman students: 60 Please enter the count of sophomore students: 40 Please enter the count of junior students: 50 Please enter the count of senior students: 50 According to the provided information, there are 200 students in total. Freshman: 30.0% Sophomore: 20.0% Junior: 25,0% Senior: 25.0% Note that the four integers shown in the example (60,40,50,50) are obtained from the user's keyboard. The rest of words and numbers are generated by the program. If the user's input is different from the example, the output may also be different. Your program's output does not need to be exactly the same as the example output. Further, there is no specific requirement regarding the program's handling of invalid inputs at this time (eg, the user attempts to enter a negative number or a word for the number of students) However, your program must be able to: (1) handle the four user inputs one after one, (2) save the values into variables, (3) display the relevant message so that the user is notified what to see/do next, (4) correctly calculate and display the total number of students from the four input values, and (5) correctly calculate and display the four percentage values after the calculation. Keep in mind, the output must be a percentage value (e g. 30.0%), not a fraction value (e.g. 0.30)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
