Question: Question C 1 [ 1 0 marks ] Write your answer in the provided file, A 3 Q 1 . py . Fill in your
Question C marks Write your answer in the provided file, AQ py Fill in your name and student ID in the designated section.
You need to write code related to factorial calculation. Three functions are specified as follows:
Function getFactorialNumList
a Accept one parameter n an integer number expected
b The function body calculates the factorials of all numbers from to the input number n stores all of them to a Python list, and returns the list to the caller.
Function dispFactorialNumList
a Accept one parameter mathbff L i s t a list of factorial numbers expected
b The function body shows the factorial numbers contained in the input parameter list when there are data elements in this list. Otherwise, display the message No factorial numbers". Refer to the sample outputs for display details.
Function main accepts no input parameter and returns no value
a Ask the user to enter an integer mathbfn
b Call the function above to obtain its factorial number.
c Display the result as the sample display on the console.
d Assume the inputs are integers only. No need to consider noninteger inputs.
Call the main function to start the program
Hint: Refer to the general guidelines to determine how to call the main function. Sample Outputs:
Note: The dashed line contains dashes. The user inputs are in green.
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
