| # |
Problem Description |
Flowchart |
RAMM Computer |
RAMM Assembler |
| 1 |
Flowchart the procedure that will read in two values representing
hours worked and rate of pay. Multiply these two values together to calculate gross pay.
Then print all three values. |
 |
 |
 |
| 2 |
Flowchart a procedure that will read in the values
p (dollars), r (rate), and t (years),
print these three values, compute the interest (i = prt), and print the computed value. |
 |
 |
 |
| 3 |
Flowchart a procedure that will assign to x the value of
502 and to y the value of 6. Compute the expressions x+3y and 2x-y
and print both results. |
 |
 |
 |
| 4 |
Read two unequal values, sum them, and then print
the larger of the two values and the sum. |
 |
 |
 |
| 5 |
Read a value a. Determine and print the absolute value of
a. (Note: the absolute value of 3=3, the absolute value of -3=3, and the absolute value of
0=0.) |
 |
 |
 |
| 6 |
Draw a flowchart to input two values, a and b. Print them both.
Compute and print the absolute value of their difference. Remember that the comparison
property of real numbers states that only one of the following three statements is true:
either a = b, a > b, or a < b. |
 |
 |
 |