Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

if (start_temp 200 .or. j>(stop_temp-start_temp)) then do print*, Invalid Value Type the difference read*, j if (start_temp>-10 .or. stop_temp <200 .or. j>(stop_temp-start_temp)) exit !If user

if (start_temp<-10 .or. stop_temp>200 .or. j>(stop_temp-start_temp)) then do print*, "Invalid Value Type the difference" read*, j if (start_temp>-10 .or. stop_temp<200 .or. j>(stop_temp-start_temp)) exit !If user entered the correct input then the program exit. end do end if ! allocate memory to temp_array allocate ( temp_array(((stop_temp-start_temp)/j)+1,3) ) write(*,*) '| ','Centigrate','()','|',' ', 'Fahrenhite','()' ,'|','Kelvin','()', '|' k1=1 do i = start_temp, stop_temp, +j Fahrenheit= (32.0+i*1.8) Kelvin=i+273.15 ! Put values in Array temp_array(k1,1)=i temp_array(k1,2)= Fahrenheit temp_array(k1,3)=Kelvin k1=k1+1 end do k1=1 ! To print values from Array do while(k1<=((stop_temp-start_temp)/j)+1) write(*,*) '| ',temp_array(k1,1),'|',' ', temp_array(k1,2) ,'|',temp_array(k1,3), '|' k1=k1+1 end do ! To display size of Array write(*,*) 'Size of Matrix',size(temp_array) deallocate (temp_array) end program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago