Question: Factorial Program Assignment Part Three Create a vector of 5 numbers which will serve at the seeds for our program Run the factorial program in

Factorial Program Assignment Part Three Create a vector of 5 numbers which will serve at the seeds for our program Run the factorial program in a loop so that it calculates the factorial for each seed. New feature - track the time that it takes for each factorial to be calculated Add a line that just says "tic" just before the while loop starts you don't need a semicolon here Add a line that says "timer = toc on the line just after the while loop ends. don't forget your semicolon The value of the variable called timer will tell you how much time it took to do that calc Rewrite the output line provided so that it displays both the seed number and its factorial Add another output line beneath the one contained in the program that displays the time it took to calculate that factorial
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
