Purchase Solution

Loop Structure

Not what you're looking for?

Ask Custom Question

Rewrite the following pseudo code segment using loop structure

Rewrite the following pseudo code segment using loop structure in the specified languages:

K-> (j+13) /27

Loop:
If k > 10 the goto out
K <- k + 1
I <- 3 * k - 1
Goto loop
Out: . . .

a. Fortran 95
b. Ada
c. C, C++, Java, or C#

Assume all variables are integer type.

Purchase this Solution

Solution Summary

This solution examines loop structure.

Solution Preview

a. Fortran 95
K=(j+13)/27
DO WHILE(K<=10)
K=K+1
...

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

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.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.