Due Date
See the
calendar for due date.
Description:
Write a Fortran program that:
- Reads in the values from leastSquares.dat and calculates the best fit of the data to a line using linear least squares (i.e., x1 and x2)
- Calculates the predicted y values using the results of the linear least squares and the t values in the data file
Additionally, use a
Makefile with multiple recipes and
make to compile your program.
After the program works correctly, write a brief report (about a paragraph and definitely less than a page) in LaTeX that includes the following:
- A quick synopsis of your algorithm
- How you validated your results
- Difficulties encountered
- The number of hours spent
Rubric:
Points Item
---------- --------------------------------------------------------------
_____ / 5 Makefile
_____ / 10 Program: Read from file
_____ / 10 Program: Predictions (i.e., x1, x2 and y values)
_____ / 5 Program: Output
_____ / 5 Report: Algorithm synopsis
_____ / 5 Report: Validation
_____ / 5 Report: Difficulties
_____ / 5 Report: Hours
_____ / 50 Total
_____ Approximate number of hours spent
Submission
Submit the following for this assignment into the appropriate folder in the dropbox for COMS 6100 at
https://elearn.mtsu.edu:
- A makefile that will compile your code correctly
- Fortran source code
- Plain-text output of the program running (e.g., redirect the output of the program using ">")
- PDF of your brief LaTeX write-up
- Completed rubric (estimates for each line including hours spent)
Note: You may not use any subroutines, functions, or codes written by other authors in this assignment!