Purchase Solution

Pseudocode segment using loop structure in specified language

Not what you're looking for?

Ask Custom Question

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.

Attachments
Purchase this Solution

Solution Summary

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

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 ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

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.

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 Networking Questions

This quiz consists of some basic networking questions.