Code has already been provided to define a function named multiplyByTwo that accepts a single input variable number that is any positive number. Add commands to use a while loop to repeatedly multiply this input variable by 2 until the value is greater than one million. Also, do not use any conditional statements or for loops in your solution.
Your function should assign values to the two output variables as follows:
Assign the final value (i.e., the value that is large than one million) to the output variable finalValue. (Note the capital "L".)
Count the number of multiplications required and assign the result to the output variable multiplicationCount. (Note the capital "C".)
To help you check your work, if the input number = 100000 the function should return finalValue = 1600000 and multiplicationCount = 4. This is because 100000*2 = 200000, 200000*2 = 400000, 400000*2 = 800000, and 800000*2 = 1600000. So the input variable was multiplied by 2 four times before it became larger than one million, and the final multiplication by 2 yielded 1600000.
Note the value of the variable number is a function input. Be sure not to overwrite this value in your code. Also be sure to assign values to each of the output variables.