Week_7_LGS_Numerical_Manipulation

E has a decimal portion screen grab or ink your

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

View Full Document Right Arrow Icon
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

This note was uploaded on 01/28/2014 for the course ENGE 1114 taught by Professor Twknott during the Spring '06 term at Virginia Tech.

Ask a homework question - tutors are online