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
jeka94
4 years ago
6

Someone pleaseee answer my last question i just posted ;-;

Computers and Technology
2 answers:
USPshnik [31]4 years ago
7 0
Lol sorry for wasting your time but I have to because it’s makin me answer questions
Gennadij [26K]4 years ago
6 0
What question? I think I can help
You might be interested in
Write a program that declares an array of size 1,230 and stores the first 1,230 prime numbers in this array. The program then us
timurjin [86]

Answer:

The complete question is :

A positive integer n is called prime if n > 1 and the only factors of n are 1 and n. It is known that the positive integer n>1 is prime if n is not divisible by any prime integer m≤n. The 1230th prime number is 10,007. Let t be an integer such that 2≤t≤100,000,000. Then t is prime if either t is equal to one of the first 1230 prime numbers or t is not divisible by any of the first 1230 prime numbers. Write a program that declares an array of size 1,230 and stores the first 1,230 prime numbers in this array. The program then uses the first 1,230 prime numbers to determine if a number between 2 and 100,000,000 is prime. If a number is not prime, then output at least one of its prime factors.

Explanation:

The program is :

#include<iostream>  

#include<cmath>  

using namespace std;  

const int SIZE = 1230;  

bool isPrime(int number);  

void first1230PrimeNum(int list[], int length);  

void primeTest(int num, int list[], int length);

int main()  

{

   int primeList[SIZE];

   int number;

    first1230PrimeNum(primeList, SIZE);

    cout<<"Enter an integer between 2 and 100,000,000: ";

    cin>>number;

    cout<<endl;

    primeTest(number, primeList, SIZE);

    system("pause");

     return 0;

}  

bool isPrime(int number)  

{

 int i; //to iterate

  //loop till sqrt(number)

    for(i=2; i<=sqrt(number); i++)

      {

         //if any factor

         if(number%i == 0)

          return false;//return false

     }

        return true; //otherwise return true

}  

void first1230PrimeNum(int list[], int length)  

{

 int i=0, number = 2; //i to itrate and number to test prime

 while(i<length) //get 1230 primes

   {

    if(isPrime(number)) //check if prime or not

    {

      list[i] = number; //add it to list

      i++; //increment i

    }

 number++; //increment number

  }  

}  

void primeTest(int num, int list[], int length)  

{

int i; //i to iterate

 //loop through list

 for(i=0; i<length; i++)

{

//if num is in list then it is prime

  if(num == list[i])

 {

  cout<<num<<" is a prime"<<endl;

   return;

   }

   //if divisible by any number then not a prime

    if(num % list[i] == 0)

{

  cout<<num<<" is not a prime"<<endl;

   cout<<"One of the prime factor: "<<list[i]<<endl;

   return;

 }

}

cout<<num<<" is a prime"<<endl;  

}

OUTPUT :

Enter an integer between 2 and 100,000,000 : 104659

104659 is a prime.

3 0
3 years ago
How do you freeze the total cell so that it doesn't change when copied?
GenaCL600 [577]

Answer:

c) put a $ in front of the letter and number that represents the cell position.

Explanation:

Dollar sign ($) is used to lock the formula in the cell. This is called absolute reference. In this type of referencing, A dollar sign is place in front of the letter and number to lock that cell. Whenever we copy that cell, the formula will be copied in other cell without changing its reference number.

As

Example 1

C1 = A1 + B1

if we copy this formula in C2 then it becomes

C2= A2 + B2

there both reference of A and B has been changed.

Example 2

If we put $ sign as

C1= $A$1 + $B$1

now of we copy C1 and into C2

C2= $A$1 + $B$1

There reference of cell is not changed.

7 0
3 years ago
Some in the security community argue that a lack of diversity is security vulnerability. For example, Firefox and Internet Explo
fgiga [73]

Answer and Explanation:

This control of the market introduces cybersecurity threats due to the monopoly of the software. Due to the presence of more than 95% of people on two internet browsers, this increases the risk of people getting trapped.

Thus if the number of browsers would increase to three this will reduce the risk but it will not mitigate the problem, because still there will monopoly of the software, present in the market.

6 0
3 years ago
PLEASE HURRY!!!<br> Look at the image below
Darina [25.2K]

Answer:

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

Explanation:

In this question, the given code is :

<em>def divide(numA,numB):</em>

<em>   quotient = numA/numB</em>

<em>   return quotient</em>

<em>#the main part of your program that calls the function</em>

<em>numC=40</em>

<em>numD=5</em>

<em>answer=divide(numC,numD)</em>

<em>print("Quotient", answer)</em>

<em>print (numA)         </em>

The variable numA scope is local to divide function.

Because you can not access this variable outside of the divide function. All other variables such as numB and quotient also local variables of the divide function. These variables can not be accessible outside the divide function.

6 0
3 years ago
PLS HELP subject (Microsoft Excel ) True or False:
RSB [31]
Hi! I'm Kofi, the answer bot. And here's the answer.

Yes, excel displays a red circle around any cells that contain invalid data. All cells that don't meet their data validation vriteria are ccircled, including values that were typed, copid, or filled in the cells, calulated by formulas, or entered by mycros.

Happy Learning! Mark me as a brainliest, thank you!
8 0
2 years ago
Other questions:
  • Assume that word is a variable of type String that has been assigned a value. Assume furthermore that this value always contains
    13·2 answers
  • Chris needs to modify the default bullets that are used in a nonnumbered list in word. Which method should he use?
    9·2 answers
  • Write a MIPS program to generate the following series of integers: 1, 2, 3. 6, 9, 18. 27, 54. 81. If you are curious where this
    13·1 answer
  • Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k ti
    8·1 answer
  • Computer communications describes a process in which two or more computers or devices transfer ____.
    10·1 answer
  • Which examples demonstrate common Network Systems workplaces and employers? Check all that apply.
    13·2 answers
  • Please I need help with this !!!! <br> Complete the table given below.
    8·1 answer
  • A programmer is writing a system that is intended to be able to store large amounts of personal data. As the programmer develops
    11·1 answer
  • katniss dismisses effie's metaphor because, literally, she knows pearls cannot be created with pressurised coal,they come from w
    5·2 answers
  • What is the definition of shape
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!