Fortran Linking Multiple Files Together: I have a main fortran file. This file calls on ProgramA, ProgramB and ProgamC. The function to compute the area is pi x radius^2 x A for programA, pi x radius^2 x B for progam B and the same for programC.  I'm not sure what to put down for ProgramA.f90, ProgramB.f90 and ProgramC.f90 it has inputs for radius and A, B or C respectively. I also need a printout once the functions/programs ProgramA, ProgramB and ProgramC are callled. This is my main.f90: program practicedynamo     implicit none     real:: A,B,C, radius     A = 10     B =5     C = 2     radius = 3     !read*,radius     call programA(radius,A)     call programB(radius,B)     call programC(radius,C) end program practicedynamo

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.4: File Streams As Function Arguments
Problem 1E
icon
Related questions
Topic Video
Question
100%

Fortran Linking Multiple Files Together: I have a main fortran file. This file calls on ProgramA, ProgramB and ProgamC. The function to compute the area is pi x radius^2 x A for programA, pi x radius^2 x B for progam B and the same for programC. 

I'm not sure what to put down for ProgramA.f90, ProgramB.f90 and ProgramC.f90 it has inputs for radius and A, B or C respectively. I also need a printout once the functions/programs ProgramA, ProgramB and ProgramC are callled. This is my main.f90:

program practicedynamo

    implicit none

    real:: A,B,C, radius
    A = 10
    B =5
    C = 2
    radius = 3

    !read*,radius

    call programA(radius,A)

    call programB(radius,B)

    call programC(radius,C)

end program practicedynamo
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr