Question: *Using fortran* code to be modified: Modify your Lab04.190 (or Lab04_sol.f90) so that it: askes the user to enter his/er first name and last name

*Using fortran*

*Using fortran* code to be modified: Modify your Lab04.190 (or Lab04_sol.f90) so

code to be modified:

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

Modify your Lab04.190 (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 | stop temp. - start temp.l.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. 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 Kelvin 3- Prints the table. Note that the output should be represented as real numbers with two decimal digits 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(**)c if (c>1.0 .and. c200.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(**)c 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!