Chat with us, powered by LiveChat Fortran, Also need an answers.txt to explain what happens. | WriteDemy

Question Description

please be specific and simple make like it a biggner wrote it not a professional We want to play with Fortran a little.Also need an answers.txt to explain what happens.1. Try to change a literal value in a function.2. Write function which checks for pass by reference.3. Try using a mixed datatype expression.4. Create a 4D or 5D array and make sure it works.5. Create a recursive function and record what happens.*. See if you can trick into really doing recursion.        PROGRAM count        DO 50 i = 1, 10        PRINT *, 'Number', i50      CONTINUE        END        DIMENSION MYARR (10, 20, 5)        MYARR(1, 1, 1) = 5        MYARR(10, 20, 5) = 5000        PRINT *, MYARR(1, 1, 1)        SUBROUTINE name (parameters)           whatever code        RETURN        ENDOriginally Fortran  square(7)  print 7    ----> Could print 49        PROGRAM FUN        CALL ADD(4, 5)        END        SUBROUTINE ADD (X, Y)           ANS = X + Y           PRINT *, ANS        RETURN        END[charon] vi myfunfortran.f[charon] g77 myfunfortran.f[charon] ./a.out        DO 50 I = 1, 10        DO50I = 1,10   // This is the start of our loop        DO50I = 1.10   // This sets var DO50I to be 1.1        DO50I = 1.10   // This sets var DO50I to be 1.1Note that since all space is ignored and variables are implicitlydeclared, this statement sets DO50I without any warnings or errors.There are dangers in allowing implicit variable declarations (like inFortran), such as a typo which creates a whole new variable withoutany warnings or errors (meaning it is still a logic error but thecompiler won't notify the programmer about the typo).        SUBROUTINE ADD (X, Y)        TMP = X        X = Y        Y = TEMP        RETURN        ENDFortran had an Arithmetic IF which was a 3 way IF statement whichselected the appropriate choice based on the test begin less than,equal, or greater than zero.        IF (X) s1, s2, s3        IF (X) Y = Y + 10, Y = Y - 1, Y = Y - 1Before long programmers saw that a more conventional Logical IF(with only true/false) would be easier and more useful.       IF (X .GT. 0) Y = Y + 10       IF (X .LE. 0) GOTO 100          Y = Y + 10       GOTO 200100       Y = Y - 1200    ...

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order