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