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
ycow [4]
3 years ago
11

A Function checkMe takes three parameters, a character and two integers. If the sum of the two integers is negative, and the cha

racter has the value 'n', the function sets the integers to zero so that when the function returns, those integers have a zero value in the caller (main) program. Otherwise the function changes the character to a 'p' (so that it is changes in the caller), no matter what it started with! Give a SAMPLE CALL from main, a prototype and a function definition for this function.

Computers and Technology
1 answer:
Paul [167]3 years ago
7 0

Answer:

Check the explanation

Explanation:

Here is the program with function definition and two sample calls.

Code:

#include <iostream>

using namespace std;

//checkMe FUNCTION which takes values a, b and c

void checkMe(char &a, int &b, int &c)

{

//if sum of b and c is negative and a is 'n', b and c are set to 0, otherwise a is set to 'p'

if((b+c)<0 && a=='n')

{

b = 0;

c = 0;

}

else

{

a = 'p';

}

}

int main()

{

//first test case when else part is executed

char a = 'n';

int b = 5;

int c = 6;

 

checkMe(a, b, c);

 

cout<<a<<" "<<b<<" "<<c<<endl;

 

//second test case when if part is executed

a = 'n';

b = -4;

c = -5;

 

checkMe(a, b, c);

 

cout<<a<<" "<<b<<" "<<c<<endl;

return 0;

}

Kindly check the Output below:

You might be interested in
Which of the following creates a photograph? Silver Shutters Light Mirrors
Keith_Richards [23]

Explanation:

the reaction between silver and light creates a photograph

8 0
3 years ago
Read 2 more answers
Linear search can be used on:____________
umka21 [38]

Answer:

A is the answer...........

6 0
3 years ago
The formula to get the customer name for order 1004
klemol [59]

Please give brainiest. It would make my day.

Answer:

to get the customer name for order 1004, the formula is: =VLOOKUP(1004,B5:F9,4,FALSE) //

7 0
3 years ago
Heya!!<br><br> -:QUESTION :-<br><br> DEFINE DATA SCIENCE?​
finlep [7]

\large \underline{ \frak{ ~~~~~~~~~~~~~~~~~~~~\bigstar Solution~~~~~~~~~~~~~~~~~~~~}}

Data science helps to understand and analyse the actual scenario and help to take fruitful decisions. 

4 0
3 years ago
Read 2 more answers
Hardy doesn't have access to a work template, which is on the network server. What should he do?
BabaBlast [244]

Answer:

Allow access.

Explanation:

Network server is a type of central repository (file server), where computers connected to it can access files stored in the repository. There can be other types of network server, besides file server, like printer server.

Network server are usually not available over the internet and require users to connect to a local network (intranet), in order to access it.

The server is managed by an administrator. One of the jobs of the administrator is to password protect and/or add users to the server.

4 0
4 years ago
Other questions:
  • The network layer, or osi layer 3, provides services to allow end devices to exchange data across the network. to accomplish thi
    15·1 answer
  • The actual database of Active Directory shared resources is stored on one or more computers designated as:
    6·1 answer
  • A packet analyzer is a program that can enable a hacker to do all of the following EXCEPT ________. Select one: A. assume your i
    6·1 answer
  • The bearing of point p from A​
    15·1 answer
  • What are the first letters of each of the 3 main colors in javaScript? (seperate with commas)
    9·1 answer
  • A computer takes a lot of time to do complex calculation​
    9·1 answer
  • What read a page on website​
    15·1 answer
  • The oldest "computer" is thought to be how old? please help i beggiging 20 points
    9·2 answers
  • Can someone help me with this please
    8·1 answer
  • What is the size of BIOS?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!