>> [Comp Sci Dept]
>> [R J Botting]
Thu Apr 22 07:09:25 PDT 2004
CS620 Laboratory 8 The Joys of FORTRAN IV
Goal: understand the progress made in the last 50 years
in language design.
Process: Work in pairs:
- Translate exercise 5 on page 134 into C/C++. Note. there is a missing
statement something like this at the start of the FORTRAN:
Here is my debugged FORTRAN 77 code:
[ ex5.f ]
for this program. I compiled it with g77 -o ex5 ex5.f.
Your task is to translate it into simple C/C++.
- Make your program compile and run.
- Translate the FORTRAN in exercise 1 chapter 5 (page 133) into a C/C++
program that will solve the same problem. It may help to draw a chart of
- Make your program compile and run. It is possible that the original
program has bugs.
- Remove any gotos, or classes.
Which was easiest to translate and fix: exercise 1 or exercise 5? Why?
Deliverable: Your grade will depend on how far you have got with
the above steps by the end of the laboratory. Each pair-programming
team gets 100% of the allocated points.
- BNF::="Backus-Naur Form", for syntax and grammar, developed by Backus and Naur.
- EBNF::="Extended " BNF.
- HTML::= "HyperText Markup Language", used on the WWW.
- HTML_page::syntax= "<HTML>" head body.
- Java::="An " OO " Language from Sun".
- LISP::= "LISt Processing Language".
- LRM::="Language Reference Manual".
- Prolog::="Programming in Logic".
- TBA::="To Be Announced".
- UML::="Unified Modeling Language".
- Universal_Resource_Locator::syntax= protocol ":" location, where
- protocol::= "http" | "ftp" | "mailto" | ... ,
- location::= O( "//" host) O(pathname).
(End of Net)
- WWW::= See http://www.csci.csusb.edu/dick/cs620/,
index to web site for this class.
- XBNF::="eXtreme" BNF, developed by the teacher from EBNF, designed
to ASCII input of syntax, semantics, and other formal specifications.
Formulae and Definitions in Alphabetical Order