Question: PLEASE PLEASE PLEASE DONT USE AI HELP ME PLEASE : ( please add pseudocode for the steps program 7 _ 1 . py PROGRAM OBJECTIVE

PLEASE PLEASE PLEASE DONT USE AI HELP ME PLEASE :(
please add pseudocode for the steps
program7_1.py
PROGRAM OBJECTIVE
The objective of this assignment is to create a Python program that performs various operations on a list of randomly generated numbers representing ages of a population of cats in a kennel. The program should be able to sort, print, and perform calculations on this list to provide insights on the population's age distribution.
DELIVERABLES
A Python program named program7_1.py
The script should include a main function and a custom value-returning function
This program shall also meet all requirements stated in the assignment requirements section above and the evaluation criteria stated in the section below and will be scored using the assignment rubric.
INSTRUCTIONS
In the main function of your script, follow these steps:
Use a list comprehension to generate 49 random integers all from 1 to 16, inclusive. These represent the ages of a population of 49 cats.
Pass the list as the sole argument to the custom value-returning function.
In the custom function:
Sort the list in descending order
Return the sorted list to main
Back in main:
Using loop(s), print a 7 by 7 representation of the ages returned by the custom function. The ages should be in descending order and evenly spaced. After the loop terminates use the built-in sum function to determine the sum of all ages, and then print the sum.
Use built-in functions to determine the ages of the oldest and youngest cats, then print their ages.
Determine the average age by making use of the sum of all ages referenced above, then print the average age so that two decimal positions are included.
Make additive use of the count() method to count the number of kitten-aged cats from the original list of 49 ages whose ages are less than or equal to 2 then print the count.
Use a list comprehension to create a list of prime-aged cats from the original list of 49 ages whose ages are greater than or equal to 3 and less than or equal to 6. Use a built-in function with the list as an argument to determine the count of prime-aged cats and then print the count.
Do the same for prime-age cats whose ages are greater than or equal to 3 and less than or equal to 6.
Do the same for mature-aged cats whose ages are greater or equal to 7 and less than or equal to 10.
Do the same for senior-aged cats whose ages are greater or equal to 11 and less than or equal to 14.
Dothe same for super senior-aged cats whose ages are greater or equal to 15.
ADDITIONAL EVALUATION CRITERIA
In addition to the requirements for this module stated in the section above, your program will also be evaluated on the following criteria:
Accuracy of results
Efficiency of your code
Proper use of Python built-in functions and methods
Clear and well-structured code
The program should handle input and output correctly, with prompts and output formatted as in the example input/output. In IDLE under settings, set the Font Face to a monospaced font such as Courier New for the purpose of checking alignment.
example input/Output
15151514141414
13131313121212
11111111111111
10999988
8776666
6554443
3332211
Sum of all ages: 420
Oldest age: 15
Youngest age: 1
Average age: 8.57
Number of kittens: 4
Number of prime aged cats: 14
Number of mature aged cats: 10
Number of senior aged cats: 18
Number of super senior aged cats: 3
PROGRAM OBJECTIVE
The objective of this assignment is to create a Python program that performs various operations on a list of randomly generated numbers representing ages of a population of cats in a kennel. The program should be able to sort, print, and perform calculations on this list to provide insights on the population's age distribution.
DELIVERABLES
- A Python program named program7_1.py
- The script should include a main function and a custom value-returning function
- This program shall also meet all requirements stated in the assignment requirements section above and the evaluation criteria stated in the section below and will be scored using the assignment rubric.
INSTRUCTIONS
In the main function of your script, follow these steps:
1. Use a list comprehension to generate 49 random integers all from 1 to 16, inclusive. These represent the ages of a population of 49 cats.
2. Pass the list as the sole argument to the custom value-returning function.
In the custom function:
1. Sort the list in descending order
2. Return the sorted list to main
Back in main:
1. Using loop(s), print a 7 by 7 representation of the ages returned by the custom function. The ages should be in descending order and evenly spaced. After the loop terminates use the built-in sum function to determine the sum of all ages ADDITIONAL EVALUATION CRITERIA
In a
PLEASE PLEASE PLEASE DONT USE AI HELP ME PLEASE :

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!