Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 IDLEimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions