| # |
Problem Dscription |
Flowchart |
RAMM Computer |
RAMM Assembler |
| 1 |
Read a value. Echo print it. Multiply it by 5
Print this result. Repeat the process until the value read in is zero.
(Note: Echo print means to print immediately after reading, before using the
value in any processing. The check for trailer value or out of data must be done first,
however, to determine whether the value read in is to be treated as a data value to be
processed or a special value signaling the end of the loop process.)
|
 |
 |
 |
| 2 |
Flowchart a procedure to read a value for a.
If a is equal to 999, stop processing. Otherwise read a value for b.
Calculate c as the sum of a and b and then print c.
Continue processing an unknown number of values for a and b until
a = 999. |
 |
 |
 |
| 3 |
Read records from a file, one value per record.
Sum all these values (cumulative sum) until a trailer of -999 is encountered. Then print the
sum and stop. (Note that -999 is not included in the sum.) |
 |
 |
 |
| 4 |
Read two values. If the first value is not zero,
print the second value and its square. If the first value is zero, stop.
Repeat this for an unknown, but odd, number of cards. |
 |
 |
 |
| 5 |
Read a value. If that value is not equal to zero,
read and print the sum of the next two values. If the first value is equal to zero,
however, stop. Continue this process for additional sets of three values until zero
is encountered for the first value in a set. |
 |
 |
 |