Assignment #2 - 97B

Assignment #2 - 97B



Assignment 2
============

Weight 20
                              Due   Feb 4th.
                              E-Mail to: HUQ4

>>>>>>>>>>> To be run on elf90 <<<<<<<<<<<
MKY in Engineering and Physics are 3 measurement scales Mile, Kilometer, and Yard. Write a FORTRAN90 program that will convert a set of values read in kilometers into the other two scales. Your program should have a title to identify what the program does, followed by a blank line and then a heading above each column of displayed output stating the units. To get full marks in this assignment (20 out of 20) you have to:- 1. Run your program using the elf90 compiler 2. Upload source, data and output files to your MUSICB account (HU--) 3. Then using your HU-- account, MAIL the files to HUQ4 <<<<<<<<<<<<<<<<<<<<< Help and Assistance: 1. Your program should look something like P22.F90 but do NOT use the OPEN statement. 2. It will have a READ statement to input the data 3. It will have a 1 READ and an GOTO 1 for repeated execution ****** This item can be replaced by a "DO" loop. ****** 4. Your input data should include the following values, plus a few more of your own choosing. /DATA 22 45 35 78 88 For the over-achievers in the class there are BONUS marks (25/20) 1. Find a more elegant way of stopping the program, then just running out of data and getting an error message. 2. Count the number of data values read and print this at the end. 3. Make your program more general by reading in a value followed by a code M or K or Y, and then convert the input value to the other 2 scales. On your output identify which was input scale (M/K/Y). ======================================================================
>>>>>Send assignment to HUQ4 code <<<<<