Question: Question 3 : [ 1 2 . 5 marks ] You are requested to write a python program that does the following: a . Create
Question : marks
You are requested to write a python program that does the following:
a Create Computation class with an initializer that takes as a parameter.
b Create a method called Factorial in the above class that takes as a parameter, calculates
the factorial of and return s factorial.
c Create a method called Sum in the above class that takes as a parameter, calculates and
returns the sum of the first integers dots
d Instantiate the class after prompting the user to enter an integer, and write the necessary
statements to test the above two methods.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
