This URL is stewart.sdsu.edu/cs575/labs/l2report_fileio.html
Main task for 18Sept02 lab:
Start on Report Due Sept. 25
Start to edit and prepare your class home page for Assignment 1 on timers
Your essay question
How large does the input parameter, N, controlling the loop in the sample code you examined in lab last week have to be to obtain convincing data that you can relate the known OpCounts to the actual measured CPU time as measures of work? Provide the data to support your conclusion. Consider both user CPU time and system CPU time.
For ideas on how to gather convincing data, see Validating Data in the Problem Solving Skills page.
You should start to form the habit of capturing your data to a file and identifying this data. One simple way to accomplish this would be to
A simple HTML tag would be to use the tag pre for pre-formatted text.
< pre >
your "datafile81632" here
< /pre >
your "datafile81632" here would be the file datafile81632 in the script example above.
Your essay must use the template above and must include your output data from the modified C or Fortran code, csample.c or fsample.f, using the script - exit instructions above or writing to a file, below. You must discuss the data that you actually generate.
When you have completed your essay, including the authenticating output above, you must send email from your class account to stewart@rohan.sdsu.edu to notify me that your essay is ready to be viewed.
You must also bring a printed copy of your report to class on 25Sept02. I plan to have another member of the class read your report and do a short evaluation of it. The hope is that you will learn even more from reading another persons explanation of the same computational experiment that you have just done.
I recommend that you start to consider structuring your code so that they write the output data to a file for subsequent processing. If you are not confident of your programming skills, then the script/exit technique outlined above is fine, for now. If you have not had the opportunity to work with code writing to a file, I am providing the following simple examples.
Return to CS 575 Class Home Page