BEGINNING WITH FORTRAN 90: RUNNING A FORTRAN PROGRAM
In this assignment, you will learn how to type, debug, and run a sample Fortran program (check the end of this document) using Essential Lahey Fortran 90 Compiler (ELF90), and also you will learn how to submit your source program to the automated grader. Use PFE editor or any text editor to type the program and save the program file with extension F90 (example: payroll.f90). Do not press the Tab key while typing your program. Use ELF90 command to compile your program. If you need information on how to compile and run your program, check the course web site (or the Lahey web site at http://www.Lahey.com). Before submitting your program to the grader, make sure that your program compiles and runs perfectly. You can learn about how to submit a program to the Automated Grader by visiting the Automated Grader homepage. There is a link to the Automated Grader Homepage from the course web site. You must not receive any help from anyone in typing, testing, and debugging (fixing errors) the program.
LIST OF SOFTWARE YOU NEED
Follow the instructions published in the Course Web pages
for details.
1. ELF90 Compiler: Download from www.Lahey.com
2. PFE Editor: Download it from the Automated Grader Homepage
3. Java Run Time Environment: Download it by following the link given in the Automated Grader Homepage
4. Client package to submit: Download it from the Automated Grader Homepage
INPUT
The sample program reads data from an input file, named "payroll.dat". Use PFE editor or any text editor to create the input file, before you run the program on your machine. Remember the input file must be saved as "payroll.dat". Each line of the input file must contain three data items separated by spaces:
Employee ID: an integer (1 to 5 digits)
Hours worked: a real number with one or zero decimal
Hourly rate: a real number with two decimals
For example, the following shows the content of the input file for five employees, where each line represents the data set for one employee:
1023 50 12.50
1025 30 6.00
1030 40 20.00
1040 60 22.50
1050 40 15.50
OUTPUT
When you run the program, the output will be saved in a file, named "payroll.out". You can check the output file with PFE editor or any text editor. The following is the output of the program for the input data shown above:
Employee Id
Pay Rate Hours Worked
Net Pay Tax
-------------------------------------------------------------------
1023 12.50 50.00 700.00 50.00
1025 6.00 30.00 180.00 0.00
1030 20.00 40.00 750.00 50.00
1040 22.50 60.00 1750.00 50.00
1050 15.50 40.00 570.00 50.00
Remember the automated grader is case sensitive and therefore,
the output statement for the header must be typed exactly as it is given
in the sample program. (the above listing is just an example. you
will find the exact required format in the sample program)
SUBMISSION TO AUTOMATED GRADER
Make sure that you have downloaded and installed necessary software components to submit your program to the grader server. If do not know how to setup your machine for electronic submission, get some help from some fellow student or a person who has some experience with the automated grader. If you receive any message from the grader that you are not enrolled in the class, you must inform us immediately. It may happen that your PID is wrong or not entered on the grader server at all. In this situation, we have to take corrective actions as soon as possible. For this assignment, you will be able to make at most five submissions. Remember the late penalty is 20% for each day late.
