CSC 160 - Pseudo-code Quick Reference

A brief definition (clarification) of what pseudo-code is and what it should look like

What is pseudo-code

On page 19, our text says:

Pseudo-code is a cross between human language and a programming language.

The goal of pseudo-code is to describe the design of your solution to a programming problem. This should ease the C++ implementation of the solution, and your C++ coding should flow fairly easily from your pseudo-code description.

I will also add the following about pseudo-code:

The level of detail in your pseudo-code is somewhat subjective. The goal of the pseudo-code is for you to describe the important design and structural decisions you are making about your program. You do not need to describe the obvious. For example, in communicating with the user, the full text of messages and menus need not be described in pseudo-code. Your pseudo-code should not be as detailed as C++.


Dictionary

Here's your pseudo-code vocabulary... try and use these verbs, where possible, in your pseudo-code:

The use of other English verbs is not prohibited. You should, however, use these verbs to describe these activities when possible.


Examples in the book

You can find pseudo-code examples for each of my programs on the k: drive.

Also, here's a list of pseudo-code examples in the book with their highlights (if any):