# Homework Solution: Develop an algorithm which generates an infinite loop and turns ON (i.e., True, Hi, or Logic 1) a Boolean Variable, LED1, once every fourth i…

HW02-1 Develop an algorithm which generates an infinite loop and turns ON (i.e., True, Hi, or Logic 1) a Boolean Variable, LED1, once every fourth iteration. Write a flowchart Matlab script which generates an infinite loop in Matlab.  Document this algorithm using a flowchart or pseudo-code. o For a flowchart, use an online tool such as “draw.io” (or powerpoint). Hand- written drawings (sketches) are permitted for In-Class Activities (for time/expediency) but ARE NOT acceptable for this HW assignment. o For pseudo-code, use a simple text file and standard pseudo-code protocol.  Use the variable names specified and document (explain) any additional variables.  Submit this plan as a separate file (HW02-1.io, or HW02-1.ppt, or HW02-1.txt, etc.). SPRING 2017 DSTR-ENGR112 HW02 HW02-2 Write a Matlab function which implements the algorithm developed in HW02-1.  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-2.m)  Capture the 5-10 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-2.txt or HW02-2.pdf). 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:  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).

HW02-1

HW02-1

Develop an algorithm which generates an unbounded loop and turns ON (i.e., True, Hi, or Logic 1) a Boolean Changeable, LED1, once integral fourth succession. Write a flowchart Matlab script which generates an unbounded loop in Matlab.

 Instrument this algorithm using a flowchart or pseudo-code.
o Coercion a flowchart, correction an online machine such as “draw.io” (or powerpoint). Hand-

written drawings (sketches) are uncounted coercion In-Class Activities (for

time/expediency) barring ARE NOT enlivening coercion this HW assignment.
o Coercion pseudo-code, correction a humble passage finish and model pseudo-code protocol.

 Correction the changeable names ascertained and instrument (explain) any concomitant changeables.

 Submit this guile as a different finish (HW02-1.io, or HW02-1.ppt, or HW02-1.txt, expectation.).

SPRING 2017 DSTR-ENGR112 HW02

HW02-2
Write a Matlab duty which tools the algorithm patent clear in HW02-1.

 Instrument this duty with Matlab comments. This allure aid you when you tool this algorithm in other programming languages, such as EmbeddedC.

 Submit this Matlab duty as a different finish (HW02-2.m)

 Capture the 5-10 lines of real output of this duty to interpret its correct

operation. Save this output as a passage finish or pdf finish (converted from an picture).

 Submit this output as a different finish (HW02-2.txt or HW02-2.pdf).

HW02-3

Develop an algorithm which generates an unbounded loop and turns ON (i.e., True, Hi, or Logic 1) a Boolean Changeable, LED1, coercion three successions, then OFF coercion five successions. Here is an abbreviated follow board of the expected output:

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

 Correction the changeable names ascertained and instrument (explain) any concomitant changeables.

 Submit this guile as a different finish (HW02-3.io, or HW02-3.ppt, or HW02-3.txt, expectation.).

HW02-4
Write a Matlab duty which tools the algorithm patent clear in HW02-3.

 Instrument this duty with Matlab comments. This allure aid you when you tool this algorithm in other programming languages, such as EmbeddedC.

 Submit this Matlab duty as a different finish (HW02-4.m)

 Capture the 10-15 lines of real output of this duty to interpret its correct

operation. Save this output as a passage finish or pdf finish (converted from an picture).

 Submit this output as a different finish (HW02-4.txt or HW02-4.pdf).

HW02-1

HW02-2

HW02-3

HW02-4