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
sergiy2304 [10]
3 years ago
10

2. A shift register can operate:

Computers and Technology
1 answer:
Naddik [55]3 years ago
8 0
C. Both serially and Perullo
You might be interested in
Lisa is developing a Web application using a framework and wants to include interactive elements using JavaScript. She decides t
kotegsom [21]

Answer:

The best option for Lisa to access a library is to:

c. Use the jQuery UI library.

Explanation:

The jQuery UI is an interactive user interface with the interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.  It is used for building highly interactive web applications.  It comes free and is an open-source software distributed by the jQuery Foundation under the MIT License. The library, jQuery UI, was first published in September 2007.

6 0
3 years ago
What will be the output of the following code snippet? token = False while token : print("Hello")
Andrei [34K]

Answer:

Hi!

The correct answer is B.

Explanation:

The code snippet doesn't follow the correct form of writing a while loop, so it will crash when compiles.

One correct form to write the code is:

token = false;

while (token){ <em>// Evaluate token, if true prints else terminates the loop. In this case, token is false so, no output and finish the program.</em>

     print("Hello");

   };

5 0
3 years ago
You are manually configuring a tcp/ip host. another administrator gives you the router's ip address. what is the tcp/ip term for
Nuetrik [128]
Answer: Default Gateway address
5 0
4 years ago
Read 2 more answers
Write a program that assigns two integer values from standard input to the variables int1 and int2, then prints "True" if they a
Anni [7]

Answer:

import java.util.Scanner;

public class num1 {

   public static void main(String[] args) {

   Scanner in = new Scanner (System.in);

       System.out.println("Enter first number");

       int int1 = in.nextInt();

       System.out.println("Enter Second number");

       int int2 = in.nextInt();

       

       if(int1==int2){

           System.out.println("True");

       }

       else{

           System.out.println("False");

       }

   }

}

Explanation:

Using Java Programming language.

Scanner Class is used to prompt user for the first number, This is stored as int1

The second number is received and stored as int2

If Statement is used to check if the are equal (outputs "true") or ("outputs "false") if they are not.

6 0
4 years ago
Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles. Use the follow
Dmitrij [34]
<h2>Answer:</h2>

import java.util.Scanner;

public class NauticalMiles{

   public static void main (String [ ] args){

      Scanner input = new Scanner(System.in);

      System.out.println("Please enter the number of kilometers");

      double km = input.nextDouble();

      double nm = 0.54 * km;

      System.out.println("The corresponding number of nautical miles is "  + nm);

    }

}

<h2>Explanation:</h2><h2></h2>

<em>1 => Pre-code analysis</em>

According to the question,

(a) <em>A nautical mile (nm) is 1 minute of an arc.</em>

=> 1 nm = 1 minute of an arc

(b)<em>There are 90 degrees, each containing 60 minutes of arc, between the North pole and the equator.</em>

=> Each of the degrees in 90 degrees has 60 minutes of arc

=> 1^{0} = 60 minutes of arc

=> 90^{0} = 90 x 60 minutes of arc

=> 90^{0} = 5400 minutes of arc

(c) <em>A kilometer (km) represents 1/10,000 of the distance between the North pole and the equator. </em>

=> A kilometer = (1 / 10000) x distance between the North pole and equator.

Remember that the distance between the North pole and the equator as shown in (b) above is 90 degrees which is equal to 5400 minutes of arc.

=> 1 km = (1 / 10000) x 5400 minutes of arc

=> 1 km = (1 / 10000) x 5400 x 1 minute of arc

As shown in (a) above, 1 minute of arc is 1 nautical mile(nm).

=> 1 km = (1 / 10000) x 5400 x 1 nm

<em>=> 1 km = 0.54 nm.</em>

=========================================================

<em>2 => The code analysis</em>

The code has been written in Java.

The following is the line-by-line explanation of the code written as comments.

// Import the scanner class to allow for user's inputs

import java.util.Scanner;

// Declare the main class to hold and run the application

public class NauticalMiles {

   // Write the main method where execution will begin

   public static void main (String [ ] args) {

      // Create an object <em>input </em>of the Scanner class  

      Scanner input = new Scanner(System.in);

     

      // Prompt the user to enter the number of kilometers

      System.out.println("Please enter the number of kilometers");

      // Store the user's input in a double variable called <em>km</em>

      double km = input.nextDouble();

      // Convert the input to nautical miles using the formula from the

      // pre-code analysis above. i.e 1km = 0.54nm.

      // Store the result in a double variable called <em>nm</em>

      double nm = 0.54 * km;

      // Print out the result (the nautical mile)

      System.out.println("The corresponding number of nautical miles is "  + nm);

    }       // End of main method

}            // End of class declaration

=========================================================

<em>3 => Sample output</em>

<em></em>

> Please enter the number of kilometers

>> <em>45</em>

> The corresponding number of nautical miles is 24.3

8 0
4 years ago
Other questions:
  • What is the name of the malware included in CCleaner?
    13·1 answer
  • When Google created its China-based search engine www..cn, they did not foresee eventually abandoning it because of censorship i
    12·1 answer
  • In order for bitlocker to protect the system volume without the aid of an external drive, your computer must:
    12·2 answers
  • Write a python program to calculate the average of two numbers​
    8·1 answer
  • WILL MARK BRIAN PLZ HELP PLZ I BEG YOU While levels often change in order to give a game some more variability, they might also
    11·1 answer
  • Consider a short, 90-meter link, over which a sender can transmit at a rate of 420 bits/sec in both directions. Suppose that pac
    9·1 answer
  • Write an algorithm and flowchart to display H.C.F and L.C.M of given to numbers.​
    9·1 answer
  • What is the output of this program? age=4 if age &gt;5: print (“more”) else: print (“less”)
    7·1 answer
  • How does communication produce clarity and direction​
    13·1 answer
  • Write a function assoc_list(l) that, given a list l, returns a list of tuples where the first integer represents the element of
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!