Java, FORTRAN, and C++
Not what you're looking for?
1a. What is the output from the following section of FORTRAN code?
ISUM = 0
I = 1
20 IF (I .GT. 4) GO TO 30
ISUM = ISUM + I
I = I + 1
GO TO 20
30 WRITE (*,*) ISUM
b. Write an equivalent section of Java code.
2. What is true after the following statements in a C/C++ program have been executed?
int* intPointer;
intPointer = (int*) 500;
*intPointer = 10;
Purchase this Solution
Solution Summary
This response includes solutions finding the output of a FORTRAN code and its equivalent section of Java code, and explains statements of a C++ program.
Solution Preview
1a. What is the output from the following section of FORTRAN code?
ISUM = 0
I = 1
20 IF (I .GT. 4) GO TO 30
ISUM = ISUM + I
I = I + 1
GO TO 20
30 WRITE (*,*) ISUM
Answer: The output ...
Purchase this Solution
Free BrainMass Quizzes
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Javscript Basics
Quiz on basics of javascript programming language.
C# variables and classes
This quiz contains questions about C# classes and variables.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.