Question: TO BE COMPLETED IN PYTHON IN COMPLIANCE WITH THE LOOPS METHODS! 1) Design your own program that will: a. Prompt the user with a menu

TO BE COMPLETED IN PYTHON IN COMPLIANCE WITH THE LOOPS METHODS!

TO BE COMPLETED IN PYTHON IN COMPLIANCE WITH THE LOOPS METHODS! 1)

1) Design your own program that will: a. Prompt the user with a menu that contains two options: i. Calculate a factorial of a number. ii. String reversal. b. If the user chooses option 1 , the program will ask for a number. The program will then calculate the FACTORIAL of that number and display it for the user. The factorial of a number is that number multiplied by all numbers below it. For example, the factorial of 6 is 654321=720. c. The programmer should create a factorial FUNCTION that will perform this calculation. This function will not PRINT anything but will calculate and RETURN the factorial value. That value could then be printed outside of the function. d. For the String Reversal option, the user should be prompted for a string. The program will then display the string in REVERSE. For example if the user enters in "Capital", the program will display "latipaC". The programmer should design a FUNCTION that takes a string as input and then RETURNS the backwards string. The function should not print anything, but the reversed string could be printed from outside the function. **NOTE** Please comment your code along the way, and be sure to put your NAME, CLASS, and PURPOSE OF THE PROGRAM in a comment at the top of the program

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!