Exercises: using the ARG instruction
About this task
The left column shows the input values sent to a program. The right column is the ARG
instruction within the program that receives the input. What value does each variable receive?
| Input | Variables Receiving Input | |
|---|---|---|
| 1 | 115 -23 66 5.8 | ARG first second third |
| 2 | .2 0 569 2E6 | ARG first second third fourth |
| 3 | 13 13 13 13 | ARG first second third fourth fifth |
| 4 | Weber Joe 91 | ARG lastname firstname score |
| 5 | Baker Amanda Marie 95 | PARSE ARG lastname firstname score |
| 6 | Callahan Eunice 88 62 | PARSE ARG lastname firstname score . |
ANSWERS
- first = 115, second = -23, third = 66 5.8
- first = .2, second = 0, third = 569, fourth = 2E6
- first = 13, second = 13, third = 13, fourth = 13, fifth = null
- lastname = WEBER, firstname = JOE, score = 91
- lastname = Baker, firstname = Amanda, score = Marie 95
- lastname = Callahan, firstname = Eunice, score = 88