Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ProcessorExcercise 1 0 . 3 Modify your program from 1 0 . 2 by writing a function called flashpattern: that accepts two inputs: the number
ProcessorExcercise
Modify your program from by writing a function called flashpattern: that accepts
two inputs:
the number of "rapid" second flashes before the pause
the pause time in seconds between each set of rapid flashes
We are going to use this function to refactor" 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
ie flash, delay using the previous functions you wrote to perform the task need help solving this Excercise thus my code so far
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started