Question: ProcessorExcercise 1 0 . 3 Modify your program from 1 0 . 2 by writing a function called flashpattern: that accepts two inputs: the number

ProcessorExcercise 10.3
Modify your program from 10.2 by writing a function called flashpattern: that accepts
two inputs:
the number of "rapid" 1 second flashes before the pause
the pause time (in seconds) between each set of rapid flashes
We are going to use this function to "re-factor" our main code. That is, instead of the
flash loop in main, we are asking you to move that logic to a function called
"flashpattern" following the description above. Once done, the main code should now
just set up the arguments to flashpattern:, and then call flashpattern to do all the work
(i.e., flash, delay using the previous functions you wrote to perform the task). need help solving this Excercise thus my code so far
 ProcessorExcercise 10.3 Modify your program from 10.2 by writing a function

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!