{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Week_7_LGS_Numerical_Manipulation

E has a decimal portion screen grab or ink your

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a flowchart) that will determine if a number is integer or real (i.e has a decimal portion) Screen Grab or ink your solution (text) here: LECTURE Engineering Engineering Education Write an algorithm (NOT a flowchart) that will determine if a number is integer or real (i.e has a decimal portion) Screen Grab your solution: enter a number find nearest integer subtract number and integer if difference is not zero, number is real otherwise, number is integer LECTURE Engineering Engineering Education Exercise: Individual work: (3 minutes) Convert that algorithm to a flowchart: Screen Grab or ink your flowchart here: LECTURE Engineering Engineering Education Convert that algorithm to a flowchart: Missing T/F LECTURE Engineering Engineering Education What is the MATLAB equivalent of the decision structure? A. IF-END B. IF-ELSEIF-ELSE-END C. IF-ELSE-END D. nested E. stacked LECTURE Engineering Engineering Education Exercise: Individual work: (5 minutes) Write a MATLAB script file (m-file) for this cod...
View Full Document

{[ snackBarMessage ]}