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
pychu [463]
3 years ago
12

Can Anyone Send Me The Correct Code To This ? ITS JAVA

Computers and Technology
1 answer:
scoundrel [369]3 years ago
8 0

Answer:

whta u mean by code?

Explanation:

You might be interested in
Charts are often used in _____ to quickly represent data and help the readers understand the data.
ololo11 [35]

Answer:

Explanation down below :)

Explanation:

The answer is reports.. . hope that helped!

4 0
4 years ago
How do you put sound/music in Google classroom slideshow?
Svet_ta [14]
So, there's no actual way to insert music into your slides unless you use imovie. BUT, you can place a link in one of your slides to a particular song on spotify, and as you are presenting, you can click on the link, and it will open up spotify and play the song you selected. 

Okay so first, go ahead and open up your google slides presentation. 

Then find the specific slides you want to add music to. 

Select Insert from the menu, and then click on text box. Place the text box anywhere in your slide, and you can put some text in there to disguise the link, or you can just paste the link directly. 

TO GET THE LINK: 

Go to spotify.com 
Pick out the song you want to use.
Right click, and select "copy song link" 

Then paste that link in your text box you created! 
6 0
3 years ago
Technician A says that front and rear U-joints on a RWD axle should operate at different angles to prevent vibration. Technician
sleet_krkn [62]

Answer:

Technician B is correct only

Explanation:

The actions of technician b helps to eliminate uneven rotating speed which causes vibrations.

6 0
4 years ago
1111111111111111111111111111
NISA [10]

Answer:

in order to use correct codes, ensure the variables in loops are in brackets

3 0
3 years ago
Implement a Breadth-First Search of the people in the network who are reachable from person id 3980. You can implement BFS with
Gnoma [55]

Answer:

Check the explanation

Explanation:

import java.io.File;

import java.io.FileNotFoundException;

import java.util.LinkedList;

import java.util.Scanner;

import static org.junit.Assert.assertEquals;

/**

* CS146 Assignment 3 Node class This class is used for undirected graphs

* represented as adjacency lists The areFriends() method checks if two people

* are friends by checking if an edge exists between the two

*

*/

public class NetworkAdjList {

   // Initialize array with max number of vertices taken from SNAP

   static int max_num_vertices = 88234;

   static LinkedList<Integer>[] adjacencyList = new LinkedList[max_num_vertices];

   public static void createAdjacencyList() {

       // Initialize array elements

       for (int j = 0; j < max_num_vertices; j++) {

           adjacencyList[j] = new LinkedList<Integer>();

       }

       // Get file path of the 3980.edges file

       String filePath = "C:\\Users\\shahd\\Documents\\CS146\\Assignment 3\\Question 3\\Question3\\src\\a3\\3980.edges";

       File f = new File(filePath);

       // Use Scanner to read edges from the file and put it into adjacency list

       int a;

       int b;

       try {

           Scanner fileIn = new Scanner(f);

           while (fileIn.hasNext()) {

               a = fileIn.nextInt();

               b = fileIn.nextInt();

               adjacencyList[a].add(b);

               adjacencyList[b].add(a); // We need to add the edges both ways

           }

       } catch (FileNotFoundException e) {

           e.printStackTrace();

       }

   }

   public static boolean areFriends(int A, int B) {

       // If the adjacency list contains (A, B) edge, then return true, else false

       if (adjacencyList[A].contains(B)) {

           return true;

       } else {

           return false;

       }

   }

  private static void bfsHelper(boolean visited[], int currentNode, int dis, int sourceNode) {

       dis++;

       if(!visited[currentNode]) {

           visited[currentNode] = true;

           

           for(int neighbor: adjacencyList[currentNode]) {

               System.out.println(neighbor + " is at a distance of " + dis + " from " + sourceNode);

               bfsHelper(visited, neighbor, dis++, sourceNode);

           }

       }

   }

   public static void BFStraversal(int start) {

       boolean visited[] = new boolean[max_num_vertices];

       bfsHelper(visited, start, 0, start);

   }

   public static void main(String[] args) {

       /**

        * These test cases assume the file 3980.edges was used

        */

       createAdjacencyList();

       System.out.println("Testing...");

       assertEquals(areFriends(4038, 4014), true);

       System.out.println("1 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(3982, 4037), true);

       System.out.println("2 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(4030, 4017), true);

       System.out.println("3 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(4030, 1), false);

       System.out.println("4 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(1, 4030), false);

       System.out.println("5 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(4003, 3980), true);

       System.out.println("6 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(3985, 4038), false);

       System.out.println("7 of 7");

       System.out.println("Success!");

   }

}

**************************************************

8 0
3 years ago
Other questions:
  • Among the second generation homebconsole companies which managed to come out on top
    14·1 answer
  • Element will you include to present numerical data on the slide
    13·1 answer
  • Refer to the exhibit. A company is deploying an IPv6 addressing scheme for its network. The company design document indicates th
    11·1 answer
  • WILL GIVE BRAINLEST!!!!!!!! 10 POINTS!!!!
    5·2 answers
  • Ben is writing a paper for his college history class, and he wants to include some information he found on a Web site. What are
    5·1 answer
  • Ict quiz I attached a picture
    11·2 answers
  • Evaluation of your strengths and weaknesses
    13·1 answer
  • When you _______ the top row or the left column, you can keep column headings and row labels visible as you scroll through your
    8·1 answer
  • How to add a legend to a graph in excel?
    7·2 answers
  • A date for creation or revision<br> is mandatory for all web pages?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!