Question: This assignment is for a new file on IDLE Program 1 Open IDLE. Create a new script file (File-->New File, Ctrl+n on Windows, Cmd+n on
This assignment is for a new file on IDLE
Program 1 Open IDLE. Create a new script file (File-->New File, Ctrl+n on Windows, Cmd+n on macos) On the first line, place your name in a comment Create a program that does the following e Take your code from the second problem in the last assignment . Adjust the code: o To take in two more integers from the user (making for a total of five (5) ints) o To calculate the sum, average, and product of all five numbers . Add logic to calculate the largest and the smallest of the five numbers o You cannot use the min) and max) functions Report the sum, average, and product back to the user with formatted output Your output should resemble the following Please enter the first number: 3 Please enter the secondnumber: 4 Please enter the third number: 5 Please enter the fourth number: 6 Please enter the T1tth number: The sum is: The average is: The product is: The largest number is:7 The smallest number is: 3 25 5 2520 Note: we will test different numbers than those shown here. Your program should still function properly regardless of the numbers provided. Program 1 Open IDLE. Create a new script file (File-->New File, Ctrl+n on Windows, Cmd+n on macos) On the first line, place your name in a comment Create a program that does the following e Take your code from the second problem in the last assignment . Adjust the code: o To take in two more integers from the user (making for a total of five (5) ints) o To calculate the sum, average, and product of all five numbers . Add logic to calculate the largest and the smallest of the five numbers o You cannot use the min) and max) functions Report the sum, average, and product back to the user with formatted output Your output should resemble the following Please enter the first number: 3 Please enter the secondnumber: 4 Please enter the third number: 5 Please enter the fourth number: 6 Please enter the T1tth number: The sum is: The average is: The product is: The largest number is:7 The smallest number is: 3 25 5 2520 Note: we will test different numbers than those shown here. Your program should still function properly regardless of the numbers provided
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
