For this question, select and name a high-level language you will be discussing. Diagrams might help in your
answers.
a) Explain how the computer passes control to a subroutine (or procedure) and returns it to the main
routine once the task has been completed.
b) Explain, giving a relevant example, how a subroutine (or procedure) can be used several times in the
same program, each time accepting different data values and passing back different results.
c) ABS and INT are two numeric data handling functions found in many languages. Explain what EACH of
the following achieves:
i Z = ABS (X – Y)
ii IF 5 * INT(A / 5) – A = 0 THEN …….
Ivzirnalsradeys
0
Newbie Poster
Recommended Answers
Jump to PostMy optimism in others' good intentions is battling with my pessimism about help vampires (which the OP is quickly proving herself to be). Still, in the hope of giving her at least a …
Jump to PostHmmn, I gather from the downvote that I went a bit too far in helping this particular person. Either that, or the fact that I did a favor for a help vampire like the OP offended someone. In either case, I do apologize, and will be more circumspect in the …
All 7 Replies
Sarkurd
0
Junior Poster in Training
Ivzirnalsradeys
commented:
i understand and sory
+0
ddanbe
2,724
Professional Procrastinator
Featured Poster
Ivzirnalsradeys
commented:
i understand and sory
+0
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Ivzirnalsradeys
commented:
i understand and sory
+0
sanjulovers
-3
Light Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Taywin
312
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.