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 program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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