New problems for quiz #3 in Computer Tools KJC (10/05/99) ------------------------------------------ Note: User friendly prompting for inputs and labeling of outputs (and labeling of units, if appropriate) is required for full credit. Unless explicity stated, use INTEGER or REAL types as appropriate. 1) Write a FORTRAN program to input from the console three integer numbers and a file name (a text string of less than 8 characters). Then create the file and write the three numbers to the file in backwards order (from the order that the numbers were entered). Finally, read the contents of the file and output it to the the console. 2) Using a text editor create a file named input.txt. In input.txt create two columns of numbers as shown here... 3 5 8 9 3 2 Write a FORTRAN program to read the contents of input.txt, add 1 to each value, and write the results (again, in two column format) to a file named output.txt. The program must create the file output.txt. 3) Write a FORTRAN program that prompts for first name, last name, and age. The program creates a file named output.txt. The program then writes the last name and square root of age to the file output.txt. Finally, the program should read the contents of oputput.txt and output it to the console. NOTE: THE REQUIRMENT OF THE LAST SENTENCE CANNOT BE IMPLEMENTED WITH WHAT YOU KNOW AT THIS POINT (I.E., YOU CANNOT SUCCESSFULLY COMPLETE THIS PROBLEM). EXPLAIN WHY THE ERROR OCCURS (you can write a comment in your program describing where and why the error occurs and you should complete as much of the requiremed problem as is possible). =====