Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (10pts) Construct an algorithm and draw flowchart for the following: (x and y are input) x>0 x0 y>0 y0 10 y>0 then z =

1. (10pts) Construct an algorithm and draw flowchart for the following: (x and y are input) x>0 x0 y>0 y0 10 y>0 then z = x-y then z= x+y y0 then z = x+5 then z = 0 2. (10pts) Convert the following algebraic expressions into valid FORTRAN statements. a) y=(x-7-x)-5 b) y= /(x+5) H c) a=7x-y? 2x-1 1 + 3. (10pts) Show the output of the following program (use for blank spaces). A= 12.3459 I=512894 B=-1.567 12-5-x| C='DIFFUSION' PRINT 10, A, B, C, I FORMAT (T5,F8.3, 2X,E12.5,5X, TL2, A10, /,15)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions