Question: Lab 2.1 - Pseudocode and Modules Critical Review A Module is a group of statements that exists within a program for the purpose of performing

 Lab 2.1 - Pseudocode and Modules Critical Review A Module isa group of statements that exists within a program for the purposeof performing a specific task Modules are commonly called procedures, subroutines, subprograms,

Lab 2.1 - Pseudocode and Modules Critical Review A Module is a group of statements that exists within a program for the purpose of performing a specific task Modules are commonly called procedures, subroutines, subprograms, methods, and functions. The code for a module is known as a module definition. To execute the module, you write a statement that calls it The format for a module definition is as follows: Module naneL 3ttement 3tatement Etc End Hodule Calling a module is normally done from the Main module such as: Call nane Generally, local variables should be used and arguments should be passed by reference when the value of the variable is changed in the module and needs to be retained For example: Module mainL Declare Real number Call inputData (number) Call printData (number) End Hodule //accept number reference o the changed value ill be retained Module inputDatalReal Ref number) Number = 20 End Hodule /umber does not to be sent reference becau e umber is not going to be modified Module BKARERARAReal number Display "The number ", number End Hodule Help Video: lab2-1.wnv

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!