CMPT 120 Lecture Notes - Lecture 4: Pseudocode

39 views2 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

You can think of pseudocodes same as algorithms : a sequence of steps to solve a problem, except: Steps in algorithm may be less detailed , a pseudocode describes those steps. Steps in an algorithm look more like english ( natural ) language instructions, whereas, steps in a pseudocode may look more like a code . A step in algorithm may be written like this: convert feet into inches . An equivalent pseudocode may be written as: set inches to feet * 12. What"s common: we can transform the instruction written as algorithms, flowcharts or pseudocode into a programming language code. It would generally be more helpful to be short and specific , i. e. , describe our algorithms in a way that"s easy to transform into code. So, pseudocode a way to describe the steps in an algorithm using some short and simple english (natural) language terms. ( pseudo is almost . )

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents