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
Dahasolnce [82]
3 years ago
9

HELP ME PLZZZ I'll give brainist​

Computers and Technology
1 answer:
kow [346]3 years ago
7 0

Answer:

Um do you have pointers for us?

Explanation:

You might be interested in
Your program will search for prime numbers. You will first ask the user for the range of values to search, and use for loops to
Stells [14]

Answer:

Java code is given below

Explanation:

import java.util.Scanner;

public class Prime {

public static void main(String args[]) {

int first, last, flag = 0, i, j;

Scanner s = new Scanner(System.in);

System.out.println("Enter the lower limit :");

first = s.nextInt();

System.out.println("Enter the upper limit :");

last = s.nextInt();

System.out.println("The prime numbers in between the entered limits are :");

int x = 0;

for (i = first; i <= last; i++) {

for (j = 2; j < i; j++) {

if (i % j == 0) {

flag = 0;

break;

} else {

flag = 1;

}

}

if (flag == 1) {

x++;

System.out.println(i + " ");

}

}

System.out.println("Total number of prime numbes between " + first + " and " + last + " are " + x);

}

}

7 0
3 years ago
ment best describes the relationship between superclass and subclass types? a. A subclass reference cannot be assigned to a supe
Rom4ik [11]

Answer:

d. A subclass reference can be assigned to a superclass variable, but a superclass reference cannot be assigned to a subclass variable.

Explanation:

A subclass is a class which is derived from another class. A subclass will have the characteristics of its ancestor class. A superclass is a class which is class direct ancestor. A superclass is an existing class from which new classes are derived whereas subclass is a class which is derived from superclass. The correct statement is that a subclass can be assigned to a superclass variable.

6 0
3 years ago
In the CIA Triad, "Confidentiality" means ensuring that data is
Fiesta28 [93]

Answer:

In the CIA Triad, "Confidentiality" means ensuring that data is

Explanation:

protected from unauthorized changes to ensure that it is reliable and correct.

7 0
4 years ago
What is the genetic material that organisms pass on to their offspring when they reproduce?
FrozenT [24]
Cells are your answer

5 0
3 years ago
Assume that you have an array of integers named arr. The following program segment is intended to sum arr [0]through arr[n−1], w
Paladinen [302]

Answer:

There is only one modification in the above loop i.e. while loop should be like this--

while (i != n)

     {

         sum+=arr[i];   // Line 1, In question segment it is line 2.

          i++;                // Line 2,  In question segment it is line 1.

     }

Output:

Now if the array input is 1,2,3,4,5 then the output is 15.

Explanation:

In the above question, all the line of the segment is right except the body of the loop because--

  • The First line of the loop is increment statement which increments the value of "i" variable from 1 and the value of "i" variable will be 1 in the first iteration of the loop
  • The second line starts to add the value from 1'st index position of the array. Hence the segment gives the wrong answer. It adds the arr[1] to arr[n-1].
  • So I interchanged both lines of the while loop as shown in the answer part. I make the line 1 (In question segment) as line 2(In answer part) and line 2 (In question segment) as line 1 (In answer part).

Now It gives the correct output because it can add arr[0] to arr[n-1].

7 0
4 years ago
Other questions:
  • Pressing the Ctrl+Home keys moves the insertion point to the
    9·2 answers
  • In 2007, __________ Floridians were injured in alcohol-related collisions.
    6·2 answers
  • Why Unicode is the standard way of converting binary to text?
    8·1 answer
  • Once sales are​ forecasted, ________ must be generated to estimate required raw materials. A. a pro forma statement B. a product
    8·1 answer
  • Anybody good with Microsoft excel? I need help with this class.
    9·2 answers
  • Complete the crossword puzzle.
    12·2 answers
  • The class dateType was designed to implement the date in a program, but the member function setDate and the constructor do not c
    6·2 answers
  • A computer scientist creates an app that tells you a funny joke each time you touch the Joke button.
    15·1 answer
  • What are the common uses of joysticks? ​
    12·1 answer
  • Which utilities are excellent examples of connectivity software, applications that enable you to determine if a connection can b
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!