Programming Assignment #3

Note, these are minimum requirements.  As always, getting an 'A' requires some additional effort... something above and
beyond what is listed here.

For Perl assignments, please post the files to the appropriate directories on oz.  Then, by the due date, upload the source files to blackboard.

Remote lab time will be offered as necessary.  Outside of lab time, feel free to e-mail questions to jonesbl@one.net or ucinternet2@yahoo.com .

Part A:

Write a Perl script to take a Fahrenheit temperature (stored in $fahrenheit) and change it into a Celsius temperature (stored in $celsius).  Print the value of $celsius.  You can get the Fahrenheit value from an HTML form.

   The formula to convert Fahrenheit to Celsius is:

Celsius = (Fahrenheit – 32)*5/9

Part B:

Do the same thing as Part A for Programming Assignment #1, just do it in Perl.  For your conveinience, that is repeated here:

Pretend you work for a bank.  (Imagine that!)  Your boss has asked you to make an online savings calculator, where customers can calculate the value of their money after interest compounds for a number of periods.   Use an HTML form to ask the user for a beginning principal (deposit amount), rate of interest per period, and number of periods.  You must then display, in an HTML table generated by Perl, the balance at the end of each period.  The interest must compound once at the end of the period.  Print the very last period in bold.

Hints:
 


Grading Criteria:

Overall:

Did something extra, something beyond the minumum requirements stated here: 10
Commented: 10
 

Part A:

Form correctly accepts fahrenheit and delivers it to the Perl script: 10
Proper calculation of celcius: 10
Proper use (layout) of output: 10

Part B:

Interest calculations are correct: 10
Data in table are correct (number of periods is equal to the user's input, the periods are labeled correctly, etc.)
Form is correct: 10
Proper use of loop: 10
Proper creation and formatting of table: 10
 

Additional Deductions:

Code not in good form (sloppy, bad spelling, etc.): up to -20
Late: -10% at the beginning each 24 hour period, starting promptly at 6:30 PM on the due date.
Copying someone else's work: F for the entire quarter.
NO credit will be given for assignments more than four days late.