Create variables and call modules

Assignment Help Basic Computer Science
Reference no: EM13681100

What is the output of the following code:
Module MAIN( )
//Create variables and call modules.
Declare integer count1 =5
Declare integer count2 = 3
Declare integer count3 = 2

DISPLAY count1, count2, count3

CALL RECALC( count1)
DISPLAY count1, count2, count3

CALL RECALC( count3)
DISPLAY count1, count2, count3

CALL RECALC(count1)
DISPLAY count1, count2, count3

END MODULE
//The calculation module.
Module RECALC(integer ref num)
DECLARE integer num1 = 2
SET num = num1 * num
END Module

Reference no: EM13681100

Questions Cloud

Discuss the process for creating xml documents : Discuss the process for creating XML documents and apply this knowledge to develop XML and DTD documents.
Work breakdown structure for emr implementation : Need help with work breakdown structure for EMR implementation
A current business problem or area for improvement : A current business problem or area for improvement.
Writing quality and formal structure of the paper : Writing Quality and formal structure of the paper
Create variables and call modules : Create variables and call modules.
Review julie hilden arguments : Review Julie Hilden's arguments
Requirements analysis phase of your development process : Part of the requirements analysis phase of your development process
What is the maximum i/o wait that can be tolerated : What is the maximum I/O wait that can be tolerated?
What is meant by navigational : What is meant by navigational

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How code an interactive hangman game using string method

How do you code an interactive hangman game using the string method

  Write algorithm computing total flight time and distance

Write an algorithm for computing total flight time and the horizontal distance traveled by the cannon ball for the problem discussed in class?

  Write a multithreaded program

Make sure it is able to compile a program prog.c with pthread, do "gcc -lpthread -o prog prog.c" Need the: a) The code b) Screenshot of the terminal showing your program running with at least 8 (different) numbers as run-time input.

  What is meant by artificial intelligence

What is meant by artificial intelligence? What are two essential differences between human brains and the central processing unit of a computer.

  Deduce closed-form expression-estimates-linear regression

In weighted least-squares linear regression, we have weight ri corresponding to each data measurement. Deduce closed-form expression for estimates of w and b which minimize objective function.

  Does your company use both lan and wan technologies

Could any of the technologies (Ethernet, token ring, fast Ethernet, 100VG-AnyLAN or gigabit Ethernet) improve your current network's performance?

  Uses parallel arrays to determine the batting average

Write a program that uses parallel arrays to determine the batting average and slugging percentage for a baseball team by position.

  Sentinel-controlled repetition to allow a user

The computeShippingCharges() method should use sentinel-controlled repetition to allow a user to enter shipping data until the user has indicated that he or she is done. The total shipping charges will be computed and returned as a double value.

  Write a console program

Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where the first dimension contains exactly what they type an..

  How it would be used as part of a problem solution

How it would be used as part of a problem solution.

  You have been working as a police officer for the

you have been working as a police officer for the centervale police department for two years. you are on your nightly

  Evaluate integer expressions

Evaluate integer expressions - evaluation of expressions must recognize the standard precedence

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd