Question: *USING FORTRAN* Code to be modified: Use of formatting and input/output files . Modify your Lab04.f90 (or Lab04_sol.f90) so that it: askes the user to

*USING FORTRAN*

*USING FORTRAN* Code to be modified: Use of formatting and input/output files

Code to be modified:

. Modify your Lab04.f90 (or Lab04_sol.f90) so that it: askes the user

Use of formatting and input/output files . Modify your Lab04.f90 (or Lab04_sol.f90) so that it: askes the user to enter his/er first name and last name via key board entry (maximum 20 characters). ask user to enter the following values o Start temp. in C (Code should check if it is between -10 to 210. if not, askes the user to enter a new value) o Stop temp. in C (Code should check if it is between -10 to 210. if not, askes the user to enter a new value) o Temp. Increment in C (Code should check if it is less than Istop temp. - start temp.). if not, askes the user to enter a new value) allocate a matrix (with appropriate size) as the conversion table. assigns the element of the matrix, column by column (the first column C, the second column F, and the third columnK) creates a text file following the user first name and last name as: FirstName_LastName .txt writes on the created file the following information: 1- A description of the table such as: This table converts start-temp. to stop-temp. Celsius to Fahrenheit and Kelvin' This table has i number of rows and j number of columns Note that: in above string start-temp. and stop-temp. should be represented as a real number with two decimal digits, and i and j should be represented as integer numbers. 2- Provide a header for the table such as: Centigrade Fahrenheit 3- Prints the table. Note that: the output should be represented as real numbers with two decimal digits . Kelvin' Note: reflect your algorithm within your code as comments. Save your code as Lab05.f90 and upload on eClass. program lab_04 implicit none real, dimension (:,:), allocatable::table !maximum array real::a,b,c logical:: check integer::m, i,S(2) check=.true. do while (check) print*, 'Enter the lower and upper temperatures & limit on your table; seperate by comma' read*, a,b if((a>200.0 .or. a200.0 .or. bb) then a=a+b; b=a-b; a=a-b end if do while (check) print*, 'Enter the increment of your table; value must be between 1 and', abs(b-a)' read(**) if (c>1.0 .and. c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!