A. Write a program in FORTRAN 90 to compute the value of s from the series below: s = x + x2 + x³ + · +x30 ......
A. Write a program in FORTRAN 90 to compute the value of s from the series below: s = x + x2 + x³ + · +x30 ......
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 2E: (Practice) Write a C++ program that accepts the rectangular coordinates of two points...
Related questions
Question

Transcribed Image Text:Q.4/ Answer two of the following:
A. Write a program in FORTRAN 90 to compute the value of s from the series
below:
s = x +x2 + x3 +
+x30
B. Draw a flowchart to compute the value of (z) from the equations below:
x = a + b
z = 4Vx – 2
z = x5 – 3
x > 10
x < 10
z = 1
x = 10
C. Correct the following program:
Program value_of function
Real :: y,x
Read(*,*) y
if(x > 2) then
y = Atan (x) + exp(x)
write(*,*) x, y
elseif (x < 2) then
y = sqrt (**+2,
write(*,*) x, y
5
else
y=2
write(*,*) x, y
end
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,