BYU Home pageBRIGHAM YOUNG UNIVERSITY
  Humanities Technology and Research Support Center
Back     CHum Revolution Gateway

CHum 210
Writing Pseudocode--Solution to In-Class Exercise

During this class we looked at proposed pseudocode solutions to problem #1 from the Control Structures exercise. Then we went through the process of writing actual Revolution code, interlaced with the pseudocode. Although you are not expected to understand everything yet, it is hoped that you can see how the Revolution scripting language is constructed to make it fairly easy to read. If you don't understand everything, don't worry—we'll cover all this in depth in the coming weeks.

Here is a screenshot of what we did in class. Lines preceded by "--" are pseudocode. The other lines are the corresponding actual Revolution commands.

solution to pseudocode ex 1

Here's a trick. If you're on the internet and have access to a copy of Revolution (in our labs, eg.,) you can open this stack by opening Revolution and clicking on the Message Box icon in the toolbar, then typing this line in to it, followed by the Enter key:

  go to stack url "http://chum210.byu.edu/Keys/ProgrammingFunEx-1Key.rev"

The stack should open on your screen.


Back     CHum Revolution Gateway
Maintained by Devin Asay.
Copyright © 2005 Brigham Young University