# Homework Solution: HW02-3 Develop an algorithm which generates an infinite loop and turns ON (i.e., True, Hi, or Logic 1) a B…

HW02-3 Develop an algorithm which generates an infinite loop and turns ON (i.e., True, Hi, or Logic 1) a Boolean Variable, LED1, for three iterations, then OFF for five iterations. Here is an abbreviated trace table of the expected output:
iteration LED1
1,2,3 ON
4,5,6,7,8 OFF
9,10,11 ON
12,13,14,15,16 OFF
- Document this algorithm using a flowchart or pseudo-code (as for HW02-1). - Use the variable names specified and document (explain) any additional variables. - Submit this plan as a separate file (HW02-3.io, or HW02-3.ppt, or HW02-3.txt, etc.). HW02-4 Write a Matlab function which implements the algorithm developed in HW02-3. - Document this function with Matlab comments. This will help you when you implement this algorithm in other programming languages, such as EmbeddedC. - Submit this Matlab function as a separate file (HW02-4.m) - Capture the 10-15 lines of actual output of this function to demonstrate its correct operation. Save this output as a text file or pdf file (converted from an image). - Submit this output as a separate file (HW02-4.txt or HW02-4.pdf).

2.3)

HW02-3 Develop an algorithm which generates an infinite loop and turns ON (i.e., True, Hi, or Logic 1) a Boolean Changeable, LED1, coercion three iterations, then OFF coercion five iterations. Here is an abbreviated delineate consultation of the expected output:

iteration LED1 1,2,3 ON 4,5,6,7,8 OFF 9,10,11 ON 12,13,14,15,16 OFF

- Instrument this algorithm using a flowchart or pseudo-code (as coercion HW02-1).

- Use the changeable names precise and instrument (explain) any appended changeables.

- Submit this plan as a disunited refine (HW02-3.io, or HW02-3.ppt, or HW02-3.txt, awe.).

HW02-4
Write a Matlab part which utensils the algorithm patent clear in HW02-3.

- Instrument this part with Matlab comments. This accomplish acceleration you when you utensil this algorithm in other programming languages, such as EmbeddedC.

- Submit this Matlab part as a disunited refine (HW02-4.m)

- Capture the 10-15 lines of explicit output of this part to evince its correct

operation. Save this output as a quotation refine or pdf refine (converted from an picture).

- Submit this output as a disunited refine (HW02-4.txt or HW02-4.pdf).

2.3)