Write a program to find the sum of first n natural numbees


Problem:

This is a python program.

Question 1: Write a program to find the sum of the first n natural numbers,where the value of n is provided by the user.

Question 2: Write a program to fund the sum of the cubes of the first n natural numbers where the value of n is provided by the user.

Question 3: Write a program to sum a series of numbers entered by the user. The program should first prompt the user for how many numbers are to be summed. It should then input each the numbers and print a total sum.

Question 4: Write a program that finds the average of a series of numbes entered by the user. As in the previous problem, the problem will first ask the user how mant numbers there are. Note: the average should always be a float,even if the user inputs are all ints.

Show the code, demonstrate it works properly and describe what it is doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to find the sum of first n natural numbees
Reference No:- TGS0891520

Expected delivery within 24 Hours