Modify a module named getnumber

Assignment Help Computer Engineering
Reference no: EM1331768

Design a module named getNumber which uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference parameter variable.

I'm having difficulty comprehending the concept of a reference variable. I've written my module below, however I'm unsure if I'm correct. I respectfully request your review and suggestions.

Module main ()
//Declare and initialize variable
Declare Integer = 99
//Display the value in variable
Display "x is set to", x

//Pass variable to getNumber
Call getNumber (x)

//Display the values now
Display "Enter a number"
Input number
Display "x is set to", x
End Module

Module getNumber (Integer Ref value)
Set value = 0
End Module

Reference no: EM1331768

Questions Cloud

Explain internet taxation : What are your thoughts on the pros and cons of Internet taxation? Should ecommerce transactions be taxed? Should Internet access be taxed, like phone and cellular services?
Regulatory and organisational requirement : Show the design options and the consultation process involved to meet agreed specifications and the need to meet all legal, regulatory and organisational requirement
Checking for controlled substances : Did you have probable cause to seize the cocaine? Why or why not? Does the plain view doctrine apply in this case? Why or why not?
It adds strategic value to an organization : Explain the ways in which IT adds strategic value to an organization.
Modify a module named getnumber : Design a module named getNumber that uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference parameter variable.
Organization''s sustainability efforts : Benefits of having HR in charge of sustainability - What are the benefits of HR being in charge of an organization's sustainability efforts?
Explain e-business technology manager : What are the characteristics that you think would contribute to the success of an ebusiness technology manager?
The key logistics issues and the primary methods : Who are the key players (three to five major competitors)? Focus in on the key logistics issues and the primary methods used for flow of the products.
Importance of performance measurement : Determine the importance of performance measurement in HR and Distinguish among concepts of strategic HR deliverables, enablers, and performance drivers.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Find the web that follow the 3 rules of error messaging

find the web that follow the 3 rules of error messaging. Also find 2 examples of websites that do not follow the 3 rules of error messaging.

  Which of following statements is true

Which of following statements is true

  Compute the entropy and clarity of each cluster

Compute the entropy and clarity of each cluster

  Communication diagram and sequence diagram

Why you would generate a communication diagram in place of a sequence diagram? Describe what the arrow which points to an object in the communication diagram implies.

  Chomsky normal form

Requesting assistance with the Theory of Computing.Construct a PDA that accepts L.

  Calculating the overall class average

It is now the end of the semester and Alberta would like to have a program which inputs each student`s test scores and outputs average score for every students and the overall class average.

  Developing the flowchart as per the algorithm

Design an algorithm to prepare a job applicant report. Input contains of a series of records which consists of the Social Security number or equivalent, last name, first name, middle initial, verbal test score, science test score, math test score,..

  Explain why 802.11b is the first popular standard

the first widely popular standard and still by far most used by IT industry today.

  Determining the cpi of computer

A workstation utilizes a 15-MHZ processor with a claimed 10-MIPS rating to implement a provided programme mix. Suppose a one-cycle delay for every memory access. What is effective CPI of this computer?

  Evaluating the code

Which of the following best explains the situation after Line 1 has been executed? pCdoesnothaveatarget, and pCdoesnothaveaknownvalue. pCdoesnothaveatarget, butpCdoeshaveaknownvalue.

  How to research the development technologies

how to Research the development technologies below and type up a sum,mary of them.

  Organization to consolidate servers

Utilizing any organizational model from your experience and or research, describe the pros and cons of this organization in order to consolidate the servers and to relocate the primary data centers.

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