Using the following program as a guide

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

Using the following program as a guide, write a program reads in 2 scores in the main function.. Calls a function that will triple each number. In the function and the print the result in the main function. //**Defining and calling a function with variable paramters(in and out) //Passes 2 numbers into the function and passes the 2 numbers //back out doubled #include using namespace std; void dblit( int &, int & );//since this is in and out, we need & main() { int score,score2; cin >> score>> score2; dblit( score , score2);// Call the function, since we are // passing 2 numbers back in the list, we are // not returning a number back to the spot, so // the function call is a statement by itself cout << score << " " << score2 << endl; } void dblit( int & num , int & num2) //Need & to make them in and out { num = num * 2; num2 = num2 * 2; // no need for a return, since both number will // // go back in the list. Since we do not have a // // a return, we need void by the function name }

Reference no: EM13168082

Questions Cloud

Explain what is the molar mass of a sample of gas : When hcl and nahco3 are mixed together, a chemical reaction takes place in which a gas is one of the products. What is the molar mass of a sample of gas
Sodium azide are needed to provide sufficient nitrogen gas : How many grams of sodium azide are needed to provide sufficient nitrogen gas to fill a 35.0x35.0x25.0 cm bag to a pressure of 1.20 atm at 26 degress C.
State the air pressure in the tires of an automobile : The air pressure in the tires of an automobile is adjusted to 37 psi in SanDiego, where the air temp is 68F. The air in the tires is at the same temp as the atmosphere
Explain what is the volume of the balloon when it bursts : If the atmospheric pressure at 30 km is 28.0 torr and the temp is -48 C, what is the volume of the balloon when it bursts?
Using the following program as a guide : Using the following program as a guide, write a program reads in 2 scores in the main function.. Calls a function that will triple each number. In the function and the print the result in the main function.
Compute the volume of the bottle could deliver to a climber : calculate the volume of O2 the bottle could deliver to a climber at an altitude where the temp is -38 C and the atmospheric pressure is 0.40 atm.
A "mynum" class that will read "randfile.txt" file : A "MyNum" class that will read "randFile.txt" file and obtain the 20,000 integer numbers
Input a temperature as a floating point : Your program should input a temperature as a floating point number with an appended unit letter. It should then print the temperature in all four of the units above
Explain the total pressure in the flask : determine the total pressure in the flask AND the height difference between the two arms of the manometer.

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