Select this to skip to main content [CSUSB] >> [CNS] >> [Comp Sci Dept] >> [R J Botting] >> [CSci620] >> lab08 [Source]
[Index] [Schedule] [Syllabi] [Text] [Labs] [Projects] [Resources] [Search] [Grading]
Thu Apr 22 07:09:25 PDT 2004

Contents


    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:

    1. Translate exercise 5 on page 134 into C/C++. Note. there is a missing statement something like this at the start of the FORTRAN:
       		DIMENSION A(200)
      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++.
    2. Make your program compile and run.

    3. 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 this program.
    4. Make your program compile and run. It is possible that the original program has bugs.
    5. 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.

    Glossary

  1. BNF::="Backus-Naur Form", for syntax and grammar, developed by Backus and Naur.
  2. EBNF::="Extended " BNF.
  3. HTML::= "HyperText Markup Language", used on the WWW.
  4. HTML_page::syntax= "<HTML>" head body.
  5. Java::="An " OO " Language from Sun".
  6. LISP::= "LISt Processing Language".
  7. LRM::="Language Reference Manual".
  8. OO::="Object-Oriented".
  9. Prolog::="Programming in Logic".
  10. TBA::="To Be Announced".
  11. UML::="Unified Modeling Language".
  12. URL::=Universal_Resource_Locator,
  13. Universal_Resource_Locator::syntax= protocol ":" location, where
    Net
    1. protocol::= "http" | "ftp" | "mailto" | ... ,
    2. location::= O( "//" host) O(pathname).

    (End of Net)
  14. WWW::= See http://www.csci.csusb.edu/dick/cs620/, index to web site for this class.
  15. 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