Editing Problems

All of the information below comes from experience with the new editing system under Windows NT Workstation.

email: patsymc@tstar.net
email: patsymc@physics.utexas.edu


Getting Into the Editor


The Problem File Itself

The question(s) and explanation(s) are contained in a comment at the top of the program, and the algorithm (automatically generated in the compilation process) in a comment at the bottom of the program.

There are two sections we write in the problem file, each with specific requirements:

  • Answer section (C coding)
  • Comments cannot be inserted here.
  • The correct unit of measure should be appended to the end of the correct answer designation in a comment.
  • You cannot define the same variable twice.
  • Hints and more details.
  • To raise a value to a power, use pow(base,exponent).
  • Integers may not be used--just real numbers--24.0.

  • Using the vi (Unix Line) Editor

    Last update: 6/10/99