Abstract
This chapter presents introductory concepts related to structured programming. Using just a few basic concepts, a computer program can be created to solve many types of engineering problems. Computers process data, so basic types of data are described. A key concept is the use of a variable to represent a value in the computer memory. Scientific computing can be accomplished using structured programming, where basic flow control is used to implement a solution strategy. The three types of flow control introduced are the IF statement, the FOR loop, and the WHILE loop. User-defined functions and strategies for finding errors in programs are considered. This chapter presents the key ideas required for analysis of code used to solve simple numerical problems. Students are expected to be able to interpret simple code and predict the result of running a segment of code. MATLAB syntax is used. MATLAB tutorials are presented in the next chapter.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Gatzke, E. (2022). Structured Programming. In: Introduction to Modeling and Numerical Methods for Biomedical and Chemical Engineers. Springer, Cham. https://doi.org/10.1007/978-3-030-76449-4_5
Download citation
DOI: https://doi.org/10.1007/978-3-030-76449-4_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-76448-7
Online ISBN: 978-3-030-76449-4
eBook Packages: EngineeringEngineering (R0)