Design a module named getnumber which uses a reference

Assignment Help C/C++ Programming
Reference no: EM13937743

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: EM13937743

Questions Cloud

Two concentric circles in the plane : Let R x {0,1} be with the standard topology. Let X be the quotient space obtained from R x {0,1} by identifying (x,0) with (x,1)for every real number x with |x| > 1. Is X Hausdorff? Justify your answer rigorously.
Foreign taxpayers conducting business in the u.s. : Imagine you are a CPA and represent a foreign client with operations in the U.S. Your client has requested information on tax advantages and disadvantages of establishing branch operations in the U.S. versus the use of an agent.
Research on the sixteen personality types. : Conduct academic research on the sixteen personality types. Explain the peronality type of ISTP and what the characteristics are of this type ( see below for breakdown)
Which league has more competitive balance : The standard deviation of win percentage for the 32 teams in the NBA in 2005-2006 was .134; the NBA plays 82 game season. The standard deviation of win percentage for the 32 teams in the English Premier League in 2005-2006 was .158; the EPL plays ..
Design a module named getnumber which uses a reference : 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.
What was the balance in prepaid rent on the year-end : During the year, Florida paid ad­ ditional rent in advance amounting to $16,275. The rent expense for the year was $16,850. What was the balance in prepaid rent on the year-end balance sheet?
What are the benefits of variable costing : What are the benefits of variable costing for internal reporting purposes?
Which country has comparative advantage in wheat production : Supply and Demand: For the following events, show the shift in demand and/or supply and the change in equilibrium price and equilibrium quantity a) Manufacturers of digital cameras reduce the prices of their camera. What happens to the market for ..
Topological structure of digital plane : Title: Topological Structure of Digital Plane and closure operations for digital topology We want a brief analyzation of those two sites(see attachement) and insert as many simple examples it is possible with images.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create an application that has two heaps place a linked

create an application that has two heaps. place a linked list into each heap. select one hundred random numbers.

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Returns the number of days in a month

Using only "If" statements.  Returns the number of days in a month.  Each month will be shown by a corresponding integer. This is not the most correct calculation, but Leap Year will be calculated using (Year/4) to determine if the input year is a..

  Problem of computing a set of equivalent elements

The problem of computing a set of equivalent elements arises in many applications. Recall that an equivalence relation defined on a set of elements is a relation that is reflexive, symmetric and transitive.

  Write a program that will convert us dollar amounts

Write a program that will convert US dollar amounts to Canadian dollar (1 CND = 0.92 USD). Format your currency amounts in two decimal places and trailing zeros.

  Write a program that has user enter

Write a program that has user enter a sentence and then determine how many lower case letter were entered. You need to write a logically coherent function that will determine if character is lower case or not. Main will also display the total?

  A c++ program using the concept of function overloading

write a c++ program using the concept of function overloading for the following options : select the options from [1-3], 1- Area of rectangle 2- Area of square 3- Exit ,

  Write a c program that displays a table showing the price

write a c program that displays a table showing the price of silver and gold. the table will have three columns. the

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  A palindrome is a number

A palindrome is a number or text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 34543 and 11611. Write a program that reads in a five-digit integer and determines ..

  Program for how to indicate the family member entry

Program for how to indicate the family member entry is complete

  Program to output value of tenth component of array

Write a C++ statements to perform the following: Set value of fourth component of array alpha to three times  value of eight component minus 57.

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