Given the functions of Exercises 37 and 39, what is displayed when the statement Write G(1,F(1)) in

Question:

Given the functions of Exercises 37 and 39, what is displayed when the statement

Write G(1,F(1)) in the main program is executed?


Data from Exercise 37

Suppose a program contains the following function:

Function F(X) As Float
     Set F = X + 1
End Function

What is displayed when the statement

Write F(3) in the main program is executed?


Data from Exercise 39

Suppose a program contains the following function:

Function G(X,Y) As Float
    Set G = X + Y
End Function

What is displayed when the statement

Write G(4,5) in the main program is executed?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: