Question: 1. Write a program that receives a list of integers from the user and does the following a. Displays the items in the list (2pts)

1. Write a program that receives a list of integers from the user and does the following a. Displays the items in the list (2pts) b. Displays the size of the list (2pts) c. Calculates and displays the sum of the items in the list (2pts) d. Displays the average of the items in the list (5pts) e. Displays the list items in reverse (2pt) f. Calculates and displays the square of each item in the list (5pts) g. Displays all prime numbers in the list (5pts). h. Calculates and displays the sum of the first and last items in the list if both values are even numbers (2pts)

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