1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sergeu [11.5K]
3 years ago
9

Write the code to call a function whose name is send_number. There is one argument for this function, which is an int. Send 5 as

an argument to the function.
Computers and Technology
1 answer:
Viktor [21]3 years ago
4 0

Answer:

program to this question can be defined as follows:

<u>Program:</u>

#include <iostream> //defining header file

using namespace std;

void send_number(int x) //defining method send_number

{

cout<<x; //print the value

}

int main() //defining main method

{

   send_number(5); //calling a method

   return 0;

}

Output:

5

Explanation:  

  • In the given C++ language program, firstly the header file is defined, in the next step, the method "send_number" is defined, in which an integer variable "a"passed as parameter, in which the print method is used, that prints its value.
  • In the main method, the method "send_number" is called, in which an integer value that is 5 is passed.
You might be interested in
add is a method that accepts two int arguments and returns their sum. Two int variables, euroSales and asiaSales, have already b
Oduvanchick [21]

Answer:

// here is code in Java.

// package

import java.util.*;

// class definition

class Main

{

   // method that return sum of two sale value

   public static int Add(int euroSales,int asiaSales)

   {

       // return the sum

       return euroSales+asiaSales;

   }

   //main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // variables

       int euroSales=100;

       int asiaSales=150;

       int eurasiaSales;

        // call the function

       eurasiaSales=Add(euroSales,asiaSales);

        // print the sum

       System.out.println("total sale is:"+eurasiaSales);

   }catch(Exception ex){

       return;}

}

}

Explanation:

Declare and initialize two variables "euroSales=100" and "asiaSales=150". Declare another variable eurasiaSales. Call the method Add() with euroSales and asiaSales as parameter. This method will add both the value and return the sum.This sum will be assigned to variable eurasiaSales.Then print the sum.

Output:

total sale is:250  

8 0
4 years ago
Is Samsung an android
Alenkasestr [34]

Your answer to you question is No.

8 0
4 years ago
Read 2 more answers
In what form do the hexadecimal numbers need to be converted for a computer’s digital circuit to process them? Hexadecimal numbe
artcher [175]

Answer:

people45

Explanation:

3 0
3 years ago
Technician is trouble-shooting an employee laptop that has a wired network connectivity issue. The laptop can connect to the int
AURORKA [14]

Answer:

Option B is the correct answer.

Explanation:

8 0
3 years ago
The Yacht club has a web site that consists of a picture of the yacht club room along with the yacht club rules on the left. On
lidiya [134]
External CSS style sheet
6 0
4 years ago
Other questions:
  • Complete the following:_____
    9·1 answer
  • In the range C15:G15, insert a function to calculate the total daily revenue. In the range H11:H15, insert a function to calcula
    8·1 answer
  • In what ways are Outlook notes useful for personal or professional use? Check all that apply.
    13·2 answers
  • Write a Scheme function called "sum" which takes an input function func and a nonnegative number n and outputs the value
    10·1 answer
  • Which of the following is NOT true of constructors? Question 6 options
    14·1 answer
  • A combination lock has the following basic properties:
    10·1 answer
  • Which task is not possible with VLOOKUP?
    10·2 answers
  • Write a calculator program that will allow only addition, subtraction, multiplication &amp; division. Have the
    7·1 answer
  • What is the output by the code system.out.print(8-4+2);
    13·1 answer
  • How does the technology affect you daily living? Give situations where you use technology and how it helped you.​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!