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

  Computer hardware purchases over the next five years

what criteria will you use to make the purchases.

  How to deal with such issues

Whilst group synergy is good phenomenon to observe in action, the converse is sometimes just alike  to occur with work teams (virtual or otherwise). That is, teams might sometimes have disruptive or non-cooperative members who impair performance.

  Make program that displays a digital clock in a window

Write down a program that displays a digital clock in a window using an applet. The clock should show, day of week, date, time, time zone and year.

  Translation of this into a generic assembly language

A compiler for a RISC machine would introduce delay slots into this code so that the processor can employ the delayed branch mechanism.

  Database and characteristics of database

Explain the Database and describe the four characteristics of the database? Explain the Relational Database and generate a relational database for 5 employees.

  Write down an object oriented program in java

take a rectangular matrix of cells, each of which can contain an organism. If the matrix is viewed as extending indefinitely in both directions, then each cell has eight neighbors, the eight cells surrounding it.

  Converting the sum of elements of array into octal format

Provided an array of ints named x and an int variable named total that has already been declared, write down some code which places the sum of all the elements of the array x into total.

  What is the history of osi model and benefits

Why you will recommend either asymmetric key encryption, symmetric key encryption, or no encryption at all for the Email correspondence.

  Difference between encapsulation and information hiding

define the difference between encapsulation and information hiding. In addition, I need to explain the role both of these concepts play in helping to make designs more robust and extensible.

  Cityquery and productquery

Create a report by the city and another by the product, involving details of sales and sub-totals and totals for the quantity.

  Explain what types of companies use which technology

The future of software development is now expected to be a near 50-50 split between Java and .Net. When making a decision on that technology to bank on, you should really research what types of companies use which technology.

  Plan a use case diagram to represent actors

As Dewey Dezmal enters high-ceilinged, wood-paneled reading room of the Ruminski Public Library, a young woman, seated at a long, oak table, pokes her head out from behind the monitor, sees him and stands, saying, "Welcome. I'm Peri Otticle, the d..

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