Question: Question # 1 2 . Create a function called my _ product that computes the multiplication of the numbers in any vector using a while
Question # Create a function called myproduct that computes the multiplication of the numbers in any vector using a while loop. The function should accept the vector as an input argument and return the product as an output argument. Create a script and test your function on the following vector:
These numbers below are randomized. Each of the six sample runs has a different secret number. Your output will have a different secret number each time the script runs.
Command Window Output
Guess a number between and :
You guessed too low.
Guess a number between and :
You guessed too high.
Guess a number between and :
You guessed too low.
Guess a number between and :
You guessed too high.
Guess a number between and :
You guessed too low.
Guess a number between and :
Yes, is the secret number.
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
