Question: Python 3.6. def main(): entered by a user. Write a program that finds the sum and average of a series of numbers he program should

Python 3.6. def main():Python 3.6. def main(): entered by a user. Write a program that

entered by a user. Write a program that finds the sum and average of a series of numbers he program should first prompt the user to enter total numbers of numbers are to be summed and averaged. It should then as for input for each of the numbers, add them, and print the total of the numbers and their average 2. Write a progra m that finds the area of a circle. The radius is entered by the user. Two points in a plane are specified using the coordinates (x1, yl) and (x2, y2). Write a program that calculates the slope of a line through two (non-vertical) points entered by the uscr. m 2-yl Using this same point, your program should also determine the distance between (xl and (x2, y2). Use the following formula to calculate distance x2 x1 , y1) 4. Write a program that finds the sum of the squares for the first n natural numbers. 5. Write a program to find the sum of the cubes of thc first n natural numbers where the valuc of n is provided by the user 6. Write a program which takes 2 digits, X, Y as input from the keyboard and calculates the sum of the integers from X to Y. In context, X is smaller than Y Examplc: if the input is 1, 3, your program output will be 6

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!