Explore BrainMass
Share

Explore BrainMass

    Pseudocode segment using loop structure in specified language

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

    Need help with Programming question.

    Rewrite the following pseudocode segment using a loop structure in the specified languages:

    k = (j + 13) / 27
    loop:
    if k > 10 then goto out
    k = k + 1
    i = 3 * k -1
    goto loop
    out: ...

    a. Fortran 95
    b. Ada
    c. C, C++, Java, or C#
    d. Python
    e. Ruby

    Assume all variables are integer type. Discuss which language, for this code, has the best writability, the best readability, and the best combination of the two.

    © BrainMass Inc. brainmass.com October 9, 2019, 8:55 pm ad1c9bdddf
    https://brainmass.com/computer-science/java/pseudocode-segment-loop-structure-specified-language-166764

    Attachments

    Solution Preview

    Need help with Programming question:

    k = (j + 13) / 27
    loop:
    if k > 10 then goto out
    k = k + 1
    i = 3 * k -1
    goto loop
    out: ...

    a. Fortran 95
    b. Ada
    c. C, C++, Java, or C#
    d. Python
    e. Ruby

    Assume all variables are integer type. Discuss which language, for this ...

    Solution Summary

    The solution rewrites a pseudocode segment using a loop structure in a specified language.

    $2.19