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
Lerok [7]
3 years ago
5

Write a function named print_sum that accepts three numbers as parameters and prints the sum.

Computers and Technology
1 answer:
OLEGan [10]3 years ago
7 0

Answer:

Complete C++ code along with output and comments for explanation is provided below.

C++ Code with Explanation:

#include <iostream>

using namespace std;

// implement a function named print_sum which takes three input numbers of type int and returns the sum of these three numbers.

int print_sum(int num1, int num2, int num3)

 {

// initialize the variable to hold the value of sum

     int sum;

// add the three numbers and store the result in the variable sum

     sum = num1 + num2 + num3;

// print the sum of three numbers

     cout<<"The sum of three numbers is: "<<sum<<endl;

 }

// driver code starts here

int main()

{

// initialize the three input numbers

   int x,y,z;

// get the three numbers from the user

   cout << "Please enter number 1: "<<endl;

   cin >> x;

   cout << "Please enter number 2: "<<endl;

   cin >> y;

   cout << "Please enter number 3: "<<endl;

   cin >> z;

// call the function print_sum to calculate the sum

   print_sum(x,y,z);

   return 0;

}

Output:

Please enter number 1:

24

Please enter number 2:

13

Please enter number 3:

7

The sum of three numbers is: 44

You might be interested in
How does knowledge of disk management assist in terms of increasing systems performance 10marks
AlexFokin [52]

Answer:

<h3>bagaimana pengetahuan tentang manajemen disk membantu dalam hal meningkatkan kinerja sistem 10marks</h3>
4 0
2 years ago
Explain the term remote backup with examples.​
MA_775_DIABLO [31]

Answer:

Remote Backup means the backup of your data that is stored at some online storage place or server.

Explanation:

Remote is the terminology that is used for distance things that are not directly accessible but can be accessed through some online medium.

Backup means copy your data or information that is stored some where other than your PC.

So Remote Backup is a type of server that is used to store data on some online storage or server. Some times this server is called cloud.

<u>For Example</u>

Dropbox and Google drive are the examples of the remote server, These two storage are used to backup our data online. We can store and access data through these drives by on online server or storage by just having an internet connection.

5 0
4 years ago
1
Maurinko [17]

Answer:

Microsoft PowerPoint software

Explanation:

PowerPoint is the worlds mosth popular program to create slides and charts for the office stuffs .

5 0
3 years ago
Which option can be used to automatically scan a document to prepare it for publishing, identifying personal information that sh
lubasha [3.4K]

Answer:

Document Inspector  option can be used to automatically scan a document to prepare it for publishing, identifying personal information that should be removed

Explanation:

Document scanner: This converts the text written in the paper in to a digital form. Most probably it will convert the text in paper in to image only.

Document Inspector is the tool which removes the personal information while sharing the document. The personal information can be name, mail id, phone number etc. This personal information though hidden will get reflected while publishing and this document inspector allow us to protect these data from sharing.

Privacy manager: This is a software reducing the risk of unauthorized access of data

Security manager: This once again protect the document.

4 0
4 years ago
Do anyone else receive random points from Brainly… because I swear I had like 2K+ something and I check and Im at ACE… and with
sergiy2304 [10]

Answer:

i had the same thing happen to me and no it doesnt make sense at all but....i found something out a while ago...

Explanation:

they have achievements and it helps with how you earn points and level up

6 0
3 years ago
Other questions:
  • People must use Telepresence when Virtually meeting with a group of coworkers true or false
    6·1 answer
  • which of the following scenarios is a circumstance in which it would be ethical to practice confidentiality?
    8·1 answer
  • Please help with the question no. 5 and 7 please help ​
    6·1 answer
  • ICD-10-CM diagnosis codes are entered in Block 21 of the CMS-1500 claim. A maximum of __________ ICD-10- CM codes may be entered
    14·1 answer
  • What is a quasi vpn?
    14·1 answer
  • What are some excuses for not attending online classes ( for students )​
    13·1 answer
  • Copyright ownership analysis starts with this principle: The ________ is the owner.
    6·1 answer
  • Complete the AscendingAndDescending application so that it asks a user to enter three integers. Display them in ascending and de
    7·1 answer
  • Which is a connectionless protocol in the transport layer? What are the small chunks of data called?
    12·2 answers
  • Subscribe to my you tube channel to get all your questions answered
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!