Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Plz help with code This is my code from problem #2 program HW04_02 implicit none real, dimension(20):: array1 , array2 integer :: i array1 =

Plz help with code

image text in transcribed

This is my code from problem #2

program HW04_02 implicit none real, dimension(20):: array1 , array2 integer :: i

array1 = (/ 0.2481, 0.4133, 0.4961, 0.4618, 0.3686, & -0.0495, -0.3477, -0.4219, -0.4954, -0.4156, & -0.4162, 0.3258, -0.0574, 0.2749, -0.1003, & -0.2711, 0.0383, -0.3934, 0.3173, -0.2402/) array2(1)=array1(1) do i = 2, 20 array2(i)=array2(i-1)+array1(i)

end do write(*,*) array2(1),array2(2),array2(3),array2(4),array2(5) write(*,*) array2(6),array2(7),array2(8),array2(9),array2(10) write(*,*) array2(11),array2(12),array2(13),array2(14),array2(15) write(*,*) array2(16),array2(17),array2(18),array2(19),array2(20)

end program HW04_02

3. Wirite a Fortran program that takes the first one- dimensional array from problem 2 and uses reshape to store the values in a 4x5 array with the rows and columns as show. Use a loop to print the array one row at a time using exponential notation so that the lines each look like 0.2481E+00 0.3686E+00 0.4954E+00 -0.5740E-01 0.3830E-p1

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_2

Step: 3

blur-text-image_3

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

=+ What are the information and consultation requirements?

Answered: 1 week ago

Question

=+ Should the MNE belong (why, why not)?

Answered: 1 week ago