Question: using C using random number generation using programmer-defined functions using recursive functions Exercise 3 - Multiplication Function Exercise Objectives Using random number generation Using Programmer-defined

Exercise 3 - Multiplication Function Exercise Objectives Using random number generation Using Programmer-defined functions Using recursive Functions Problem Description Use this project to develop a C program that performs the following: O The main function performs the following: O Reads in an integer. o Generates a random number in the range 2 to 12. o Passes the two numbers (the integer entered by the user and the random number) to a programmer-defined recursive function multiply, which recursively computes their multiplication. Asks the user to input the result of their multiplication. Compares the computed multiplication result to the user's answer. If the user's answer is incorrect, the user is allowed to keep trying until the correct answer is entered. Take into account to randomize the generated random numbers in various executions of the program. Asks the user if he/she likes to continue trying other numbers. If the user enters y, the computer generates another random number. Otherwise, the program is ended. O Sample Output Input your integer here: 6 I will generate a random number and check how much is its multiplication by 6. Computer: User: Computer: User: Computer: User: generated the random number 4. How much is 6 x 4? 23 No. Try Again 24 Excellent. Do you like to try two other numbers (Y: Yes, N: No)? Y Computer: User: generated the random number 6. How much is 6 x 6? 36 Computer: User: Excellent. Do you like to try two other numbers (Y: Yes, N: No)? N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
