Question: Write the code in python please Write a program that prompts the user to enter a positive integer n. The program should then compute and


Write the code in python please
Write a program that prompts the user to enter a positive integer n. The program should then compute and report the sum of the cubes of the integers from 1 to n inclusive using a for loop. The program should also compute the sums of the cubes of the integers using the formula: k=1nk4=30n(n+1)(2n+1)(3n2+3n1) and report this value to the user as well. See the example files on Sakai for what the input and output for this problem might look like. 5. Write a program that prompts the user to enter a non-negative integer value K. The program then computes and reports the values of Sk=4n=110k2n1(1)n+1 for each of the values k=0,,K (inclusive)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
