Question

FORTRAN QUESTIONS: a) How many input-output statements were there in original Fortran? b) What was the...

FORTRAN QUESTIONS:


a) How many input-output statements were there in original Fortran?
b) What was the largest possible statement number?
c) What was the purpose of statement numbers?
d) In what order would the elements of a 2D array be stored in the object program?
e) What would the ”arithmetic formula” statement be called today?
f) If the variable on the left side of an arithmetic formula is a fixed point, and the
expression on the right side evaluates to 4.579, what value would be stored in
the left side variable?
g) write a single FORMAT statement together with a single PRINT statement that
together have the same effect as the following call of printf (a C/C++ library
function):
printf("x = %8.5f i = %5d", x, i);

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1:

There are nine input/output statements:

  1. READ
  2. WRITE
  3. PRINT
  4. OPEN
  5. CLOSE
  6. INQUIRE
  7. BACKSPACE
  8. ENDFILE
  9. REWIND

I can't answer more than one question as per HomeworkLib polies.

Add a comment
Know the answer?
Add Answer to:
FORTRAN QUESTIONS: a) How many input-output statements were there in original Fortran? b) What was the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Fortran questions a) How many input-output statements were there in original Fortran? b) What was...

    Fortran questions a) How many input-output statements were there in original Fortran? b) What was the largest possible statement number? c) What was the purpose of statement numbers? d) In what order would the elements of a 2D array be stored in the object program? e) What would the “arithmetic formula” statement be called today? f) If the variable on the left side of an arithmetic formula is a fixed point, and the expression on the right side evaluates to...

  • please answer all the questions. 2. (35 pts, 5 each) Consider the following array a. Write...

    please answer all the questions. 2. (35 pts, 5 each) Consider the following array a. Write single-line statements to do the following double a[8] {0.0, = 10.0, 20.0, 30.0, 40.0), *p , ,g: Set the pointer p to point to the first element of the array - I ?-K-U) Set pointer q to point to the element with value 20.0 in the array as afn] with the correct n value. Use p above to triple the value stored in a[1]...

  • QUESTION 42 In Matlab, all arrays start at position zero. O True O False QUESTION 43...

    QUESTION 42 In Matlab, all arrays start at position zero. O True O False QUESTION 43 In C, the expression x=2 is used to compare if the value of x is equal to the value of 2, and the expression x==2 is used to assign the value of 2 to x. O True O False QUESTION 44 What is the C and Matlab function used to open an input file? Hint: This is a single word. Spelling and syntax must...

  • Need help with these questions in C programming: 9. What is the output of the following...

    Need help with these questions in C programming: 9. What is the output of the following code? int X[10]={0}; int N=4; for(int k=0; k<N:k++) X[k] = k*2: printf("%d", X[N/2]; 10. Write a single statement to accomplish each of the following. Assume that each of these statements applies to the same program. a. Write a statement that opens file "oldmast.dat" for reading and assigns the returned file pointer to ofPtr. b. Write a statement that opens file "trans.dat" for writing and...

  • These are my answere to the following questions: are they right? 1. B 2. T 3....

    These are my answere to the following questions: are they right? 1. B 2. T 3. T 4. T 5. F 6. T 7. A 8. D 9. E 10. B 11. B 12. A 13. A 14. D 15. C 16. D 17. T 18. C 19. T 20. T 21. T 22. A 23. T 24. D 25. B 26. A 27. A 28. A 29. T 30. C 31. D 32. A 33. T 34. F 35....

  • Using C programming

    Using C, create a data file with the first number being an integer. The value of that integer will be the number of further integers which follow it in the file. Write the code to read the first number into the integer variable how_many.Please help me with the file :((This comes from this question:Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int...

  • Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory...

    Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int * ) named ptr_1. Use ptr_1 to assign the number 7 to that dynamically allocated integer, and in another line use printf to output the contents of that dynamically allocated integer variable. Write the code to dynamically allocate an integer array of length 5 using calloc or malloc and have it pointed...

  • In Java(using BlueJ) Purpose Purpose is to practice using file input and output, and array list...

    In Java(using BlueJ) Purpose Purpose is to practice using file input and output, and array list of objects. Also, this lab specification tells you only what to do, you now have more responsibility to design how to do it. Problem description You are given a text file called 'Students.txt' that contains information on many students. Your program reads the file, creating many Student objects, all of which will be stored into an array list of Student objects, in the Students...

  • For each problems segment given below, do the following: Create an algorithm to solve the problem...

    For each problems segment given below, do the following: Create an algorithm to solve the problem Identify the factors that would influence the running time, and which can be known before the algorithm or code is executed. Assign names (such as n) to each factor. Identify the operations that must be counted. You need not count every statement separately. If a group of statements always executes together, treat the group as a single unit. If a method is called, and...

  • WONT COMPILE ERROR STRAY / TEXT.H AND CPP PROGRAM SAYING NOT DECLARED HAVE A DRIVER WILL...

    WONT COMPILE ERROR STRAY / TEXT.H AND CPP PROGRAM SAYING NOT DECLARED HAVE A DRIVER WILL PASTE AT BOTTOM MOVIES.CPP #include "movies.h" #include "Movie.h" Movies *Movies::createMovies(int max) { //dynamically create a new Movies structure Movies *myMovies = new Movies; myMovies->maxMovies = max; myMovies->numMovies = 0; //dynamically create the array that will hold the movies myMovies->moviesArray = new Movie *[max]; return myMovies; } void Movies::resizeMovieArray() { int max = maxMovies * 2; //increase size by 2 //make an array that is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT