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
Dmitrij [34]
3 years ago
13

How do libraries let you write programs at a higher level? Why is testing important when building and sharing libraries?

Computers and Technology
1 answer:
Anna71 [15]3 years ago
6 0

Answer:

libraries do this so that you dx chae

Explanation:

You might be interested in
6.25 (Prime Numbers) A positive integer is prime if it’s divisible by only 1 and itself. For example, 2, 3, 5 and 7 are prime, b
faltersainse [42]

Answer:

  1. public class Main {
  2.    public static void main (String [] args) {
  3.        for(int i = 2; i < 10000; i++){
  4.            if(isPrime1(i)){
  5.               System.out.print(i + " ");
  6.            }
  7.        }
  8.        System.out.println();
  9.        for(int i = 2; i < 10000; i++){
  10.            if(isPrime2(i)){
  11.                System.out.print(i + " ");
  12.            }
  13.        }
  14.    }
  15.    public static boolean isPrime1(int n){
  16.      
  17.        for(int i=2; i <= n/2; i++){
  18.            if(n % i  == 0){
  19.                return false;
  20.            }
  21.        }
  22.        return true;
  23.    }
  24.    public static boolean isPrime2(int n){
  25.        for(int i=2; i <= Math.sqrt(n); i++){
  26.            if(n % i  == 0){
  27.                return false;
  28.            }
  29.        }
  30.        return true;
  31.    }
  32. }

<u></u>

Explanation:

Firstly, create the first version of method to identify a prime number, isPrime1. This version set the limit of the for loop as n/2. The for loop will iterate through the number from 2 till input n / 2 and check if n is divisible by current value of i. If so, return false to show this is not a prime number (Line 22 - 26). Otherwise it return true to indicate this is a prime number.

In the main program, we call the isPrime1 method by passing the i-index value as an argument within a for-loop that will iterate through the number 2 - 10000 (exclusive).  If the method return true, print the current i value). (Line 5 - 9)

The most direct way to ensure all the prime numbers below 10000 are found, is to check the prime status from number 2 - 9999 which is amount to 9998 of numbers.

Next we create a second version of method to check prime, isPrime2 (Line 31 - 40). This version differs from the first version by only changing the for loop condition to i <= square root of n (Line 33).  In the main program, we create another for loop and  repeatedly call the second version of method (Line 13 - 17). We also get the same output as in the previous version.

8 0
3 years ago
Claudette is shocked to discover that her company's data has been stolen, and their Web site shut down, by a malicious ex-employ
liraira [26]

Answer:

The answer is "Ex-employee hack IoT firms from Claudette to access them".

Explanation:

Computer system hacking is only a breach between both the access as well as the stealing or misuse of critical information between both computer software from the target system. In this sense, a malicious attacker uses a computer device or even a network to access or illicitly exploit information.

8 0
3 years ago
Carmina wants to move a paragraph to the right margin of the document she is working in. She moves her cursor to
MissTica

Answer:

Carmina should use Indent option in order to move a paragraph to the right margin of the margin she is working in.

Explanation:

Indents are used basically to display the blank spaces or distance of the paragraph from the left of right margin.

A simple indent moves the paragraph on either left margin side or right margin side as selected. In order to customize the indents:

  • Click on Home tab.
  • Locate Paragraph group.
  • Click on Indents and Spacing.
  • Now under the Indentation option, from the drop down menu name Special, we can choose an indent to be:

                         1. First Line

                         2. Hanging

  • Moreover, length of the indent can be adjusted.

<h3>I hope it will help you!</h3>
4 0
4 years ago
Read 2 more answers
Write a python function that on input takes a list l of integers and returns the count of how many of the integers in the list a
stepan [7]
Def countEvenIntegers(integerList):     counter = 0     for item in integerList:          if (item%2 = 0):               counter += 1     return counter
5 0
3 years ago
What are at least three common technologies used within this pathway?.
Lemur [1.5K]

Multitasking , in a variety of environments, long distance communications

3 0
2 years ago
Other questions:
  • Find Multiplication of Binary Numbers: 1100112 x 10012
    9·1 answer
  • Describe IT infrastructure. What is the role of business intelligence in determining the technology needs of a business?
    11·1 answer
  • Write a program that creates a dictionary containing the U.S. states as keys and their capitals as values. (Use the Internet to
    10·1 answer
  • Please help! i need to answer this soon!
    13·1 answer
  • Which picture should i put as my profile picture.
    15·2 answers
  • What is a central idea for 3 Despite this lack of precision, Galileo had constructed a wonderful invention. Yet, he considered i
    5·1 answer
  • Deirdre has a hearing disability. One of her friends advised her to use real-time text or RTT on her phone. In which of these
    13·1 answer
  • can anyone yell how to save the python file in folder i am saving it but whenever I'm trying to open its not open​
    15·2 answers
  • Explain the relationship between one’s point of view and understanding spoken text
    13·1 answer
  • How is blockchain different from traditional database models?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!