Explore BrainMass

Explore BrainMass

    Loop Structure

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.

    © BrainMass Inc. brainmass.com March 4, 2021, 8:00 pm ad1c9bdddf
    https://brainmass.com/computer-science/java/rewriting-pseudo-code-loop-structure-138005

    Solution Preview

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

    Solution Summary

    This solution examines loop structure.

    $2.49

    ADVERTISEMENT