Redo Programming Exercise 1, except this time make all the variables and constants floating- point type, and

Question:

Redo Programming Exercise 1, except this time make all the variables and constants floating- point type, and change the statement

k = k + 1
to
k = k + 1.2

Data From Exercise 1:

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

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

a. C, C++, Java, or C#

b. Python

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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Concepts Of Programming Languages

ISBN: 9780133943023

11th Edition

Authors: Robert Sebesta

Question Posted: