The goal of this laboratory is to give the students practice in editing, compiling and executing their programs under the UNIX windows environment.
emacs lab1.f90 &
PROGRAM Convert ! ! put your name here ! put your wpi login name here ! put your section number here ! March 23, 2000 ! ! This program converts temperatures from degrees Fahrenheit to ! degrees Celsius. ! ! variables: ! ! Fahrenheit input temperature in degrees Fahrenheit ! Celsius output temperature in degrees Celsius ! INTEGER Fahrenheit REAL Celsius ! ! get the temperature in degrees Fahrenheit ! print *, 'Enter the temperature in degrees Fahrenheit' read *, Fahrenheit ! ! convert the temperature to degrees Celsius ! Celsius = 5.0 / 9.0 * (Fahrenheit - 32) ! ! output the temperature in degrees Celsius ! print *, 'The temperature in degrees Celsius is ', Celsius STOP END
If you encounter any fatal errors along the way, they must be corrected before proceeding to the next step. (Ask the TA for help if you get stuck).
Execute the program again so that the execution is captured in the typescript file. Terminate script by typing exit
This document was generated using the LaTeX2HTML translator Version 97.1 (release) (July 13th, 1997)
Copyright © 1993, 1994, 1995, 1996, 1997, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
The command line arguments were:
latex2html lab1.tex.
The translation was initiated by Nitin John on 3/20/2000