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

Write down a pair of integers whose sum is​ 0

Computers and Technology
1 answer:
Tems11 [23]3 years ago
3 0

Answer:

-1 ans +2 are the pair of integers whose sum is 0.

You might be interested in
Write the definition of a function named newbie that receives no parameters and returns true the first time it is invoked (when
kondaur [170]

Answer:

The function definition to this question can be described as follows:

bool newbie() //defining a bool method newbie

{

static bool y = true ; // defining a static bool variable y and assign value true

bool t1=y; //defining bool variable t1 and assign value of variable y

y=false; // assigning value in variable y

return t1; // return value of variable t1

}

Explanation:

The program to this question can be described as follows:

Program:

#include <iostream> //defining header file

using namespace std;

bool newbie() //defining a bool method newbie

{

static bool y = true ; // defining a static bool variable y and assign value true

bool t1=y; //defining bool variable t1 and assign value of variable y

y=false; // assigning value in variable y

return t1; // return value of variable t1

}

int main() //defining main method

{

int s,s1; //defining integer variable s,and s1

s=newbie(); // variable s that call method

cout<<s<<endl; //print value

s1=newbie();//variable s that call method

cout<<s1;  //print value

return 0;

}

Output:

1

0

Description:

The description of the above function can be described as follows:

  • In the above method definition a boolean method "newbie" is declared, which can't accept any parameters, inside the method, two boolean variable "y and t1" is declared.
  • In this variable, variable y is a static boolean variable, that assigns a true value, and in t1 variable, we hold static variable value.  
  • In the next step, the "y" variable assigns a value, that is false and returns variable t1 value.
  • In the next step, the main method is declared, inside these two integer variable s, s1 is declared, that calls a method, and prints it value in the first time, it will print 1, that means the false and second time it will print 0, that means false.
7 0
3 years ago
I need help with a question on a computer science test.
MA_775_DIABLO [31]

Answer:

To store decimal values

Explanation:

Analyzing the given options.

(a)

Decimal values are digits and are to be treated as such. So, storing them as strings mean that they are no longer decimal values.

(b), (c) & (d)

List of colors, words and values that can't be used for calculations are all string values.

Take a for instance.

List of colors: "Red", "Yellow", "Blue",...

Words, "I", "am", "a", "boy"

Values that can't be used for calculations are non numerical data and as such, some of them could be strings.

Hence:

Option (a) answers the question

8 0
3 years ago
How do l write a program which countdown from 10 to 3​
earnstyle [38]

Answer:

use loop

for(int i =10;i>2; i--)

{

System.out.println(i+"\n")

}

4 0
3 years ago
You and your project team have been asked to generate a solution to a problem. The problem is not complicated, and you are sure
Alex

Answer:

The best option of the four is d. let the team know you have a possible solution but that you are first interested to hear what they think.

Explanation:

Being in a team involves working together and hearing what everybody has to say. Option A is not right because you expect the team to arrive at your solution instead of being open to other opinions. Option B is not right because you haven't given the team a chance to give their opinions and Option C is not right because your solution may actually be the best one and there may be no need to "generate a better one."

8 0
3 years ago
A bank is developing an algorithm that will help them decide who to make loans to. As input the algorithm will consider informat
k0ka [10]

Answer: A

Explanation:

Just took this and got it right

7 0
3 years ago
Read 2 more answers
Other questions:
  • When programming, the word "execute" means which of these?
    13·1 answer
  • You must have an active ____ to test external links.
    5·1 answer
  • What is a binary message
    12·2 answers
  • Which hypervisor works on older pcs without hardware virtualization support?
    9·2 answers
  • 9.1.3: Printing vector elements with a for loop. Write a for loop to print all NUM_VALS elements of vector courseGrades, followi
    5·1 answer
  • PL I BEG YOU HELP
    5·1 answer
  • What is technology in computer​
    6·1 answer
  • Question 17 (3 points)
    10·1 answer
  • Which of the following could be a method for an object-oriented class called Student?
    8·1 answer
  • Many programmers think object-oriented programming is a superior approach to procedural programming. Others think it adds a leve
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!