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
alexdok [17]
4 years ago
5

Suppose that you have declared a numeric array named numbers, and two of its elements are numbers[1] and numbers[5]. you know th

at ____.
a. there are exactly four elements between those two elements
b. numbers[1] is smaller than numbers[5]
c. numbers[5] is the last element in the array
d. there are exactly three elements between those two elements
Computers and Technology
1 answer:
defon4 years ago
8 0

In the scenario in which you have declared a numeric array named numbers, and two of its elements are numbers[1] and numbers[5] you know that numbers[1] is smaller than numbers[5] and that there are exactly three elements between those two elements. Correct answer: a and c.

numbers[i] is the i-th element of the array called numbers

You might be interested in
Stella has captured this candid photograph of a man who was reunited with his son. She has used facial retouching in each of the
riadik2000 [5.3K]

Answer: The last picture it looks better.

Explanation: Welcome!

8 0
3 years ago
Read 2 more answers
Write a program that accepts three decimal numbers as input and outputs their sums?​
coldgirl [10]

Answer:

The answer to this question is given below in the explanation section

Explanation:

The code is written in C++ language:

// Example program

#include <iostream>

#include <string>

using namespace std;

int main()

{

 double number [3];

 double addition=0;

 for (int i=0;i<3;i++)

 {

     cout<<"Enter decimal number at position " <<i+1< " ";

     cin>>number[i];

     addition= addition+ number[i];

           

     }

 cout<<"The addition is "<<addition;

}

5 0
3 years ago
A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated. (1) Ou
Olin [163]

Answer:

Write the following lines of code just before the return statement

//1

       System.out.println("You entered "+userNum);        

       // 2

       System.out.println(userNum+" squared is "+(Math.pow(userNum, 2))+" and "+userNum+" cubed is "+(Math.pow(userNum, 3)));

       //3

       int userNum2 = 0;

       System.out.print("Enter another integer: ");

       userNum2 = scnr.nextInt();

int sum = userNum + userNum2;

       System.out.println(userNum+" + "+userNum2+" is "+sum);

int product = userNum * userNum2;

       System.out.println(userNum+" * "+userNum2+" is "+product);

Explanation:

I continued the program from where you stopped in the question

The explanation has been added as an attachment

Download docx
4 0
4 years ago
The inside color of text or of an object is called the:
AnnyKZ [126]
Fill color is the answer hope this helps
8 0
3 years ago
When a function accepts multiple arguments, does it matter in what order the arguments
Marina CMI [18]

Answer:

yes, it matter in what order the arguments  are passed.

Explanation:

when we define the function in the programming, you have to call the function as well.

In the calling function, we passed the arguments.

In the define function, parameters in declare for taking a copy of the arguments.

for example:

int print(int value, double price, char a){

    statement;

}

//calling

print(5, 7.8, 'a');

So, in the calling function the order of the argument changed, it gives the compile error.

because 5 is the integer, so you have to store in the int parameter.

print(7.8, 5, 'a'): if we try to do that, 7.8 which is double store in the wrong integer parameter, it gives the wrong output.

similarly, if we define the array in the parameter and pass the integer in the argument on the same location. it gives the compile error.

Therefore, the location must be the same.

7 0
3 years ago
Other questions:
  • The force of impact is____.
    8·2 answers
  • What does editing refer to
    6·2 answers
  • What is the first thing you should do when creating a spreadsheet
    5·1 answer
  • 2(x-5)-3(3-x)=1/2(x-2)
    9·1 answer
  • Why do we have to watch a video to get answers?
    7·2 answers
  • Give two examples of html structure
    15·1 answer
  • Which programming language in order takes the most lines code​
    6·2 answers
  • Pls help me, it's due today​
    10·2 answers
  • Why might you use the More button in the Find and Replace dialog box?
    10·1 answer
  • Create a program that prompts the user for a positive integer then prints a right-aligned pyramid using that number using the st
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!