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
Slav-nsk [51]
2 years ago
10

I can talk to you! How about we talk through the you know where people comment and say stuff about the question1

Computers and Technology
2 answers:
skelet666 [1.2K]2 years ago
6 0

Answer:

Yes, I am incredibly bored and school is killing me

pychu [463]2 years ago
3 0
Hmmm what do you want to talk about??
You might be interested in
What do you need to do in order get paid for ads running on your content?
OverLord2011 [107]
If you're talking about YouTube or platforms like that, you have to monetize your videos in the settings. However, if your video contains copyrighted content, you will most likely be banned or given a strike for copyright infringement. You can monetize videos that have absolutely no copyrighted music, pictures or videos
4 0
3 years ago
Recall that the Counter class initializes itself to 0 and allows a client to increment it, and the Increase class is initialized
artcher [175]

Answer:

Output can be 0 or 1 or 2.

Explanation:

As we are initializing the value with 2 so at most it will increment to 2 times means value will be 2.

when main thread is printing the c , Increase thread might be started or might not be started

so output can be 0 or 1 or 2

4 0
3 years ago
Please help me!<br><br> I am stuck on a lesson on edge,
Snezhnost [94]
Here the thing I can’t see your screen it I’m on edge to can u help me I’m
In 6th grade please
7 0
2 years ago
A new program has been developed to increase students' speed and accuracy in doing simple arithmetic computations. You have been
Elanso [62]
This doesn't really tell me what I'm supposed to awnser
3 0
3 years ago
The purpose of this assignment is to practice with ArrayLists (and hopefully, you'll have some fun). As far as the user knows, p
aleksandrvk [35]

Answer:

See explaination

Explanation:

Program source code

import java.util.Random;

import java.util.Scanner;

import java.io.BufferedReader;

import java.io.FileReader;

import java.io.IOException;

import java.util.ArrayList;

public class hangman {

public static void main(String args[]) {

//ArrayList to store the dictionary

ArrayList<String> dict = new ArrayList<String>();

//to read the dictionary into ArrayList

BufferedReader fileReader;

try {

//change path to your dict file

fileReader = new BufferedReader(new FileReader(

"/Users/username/Downloads/dict.txt"));

String line = fileReader.readLine();

//read line by line into ArrayList

while (line != null) {

dict.add(line);

line = fileReader.readLine();

}

fileReader.close();

} catch (IOException e) {

e.printStackTrace();

}

//OR COMMENT THE ABOVE READING FROM FILE, to test with this 6 words

// dict.add("volvo");

// dict.add("apple");

// dict.add("ball");

// dict.add("cat");

// dict.add("elephant");

// dict.add("zoo");

int RAND_MIN=3,RANDMAX=9;

int maxGuesses = 10;

String chosenWord = "", resWord="";

Boolean isChosen = false;

Random r = new Random();

int randLength = r.nextInt((RANDMAX - RAND_MIN) + 1) + RAND_MIN;

System.out.println("Random length = " + randLength );

for (int i = 0; i < dict.size(); i++) {

if(dict.get(i).length() != randLength)

{

dict.remove(i);

i--;

}

}

//uncomment the println lines below to see the working of the algorithm

Scanner in = new Scanner(System.in);

int guessCounter = maxGuesses;

while(guessCounter>0)

{

System.out.println( "\n\n\nwords left are: and chosen is: " + isChosen);

for (int i = 0; i < dict.size(); i++) {

System.out.println(dict.get(i) );

}

guessCounter--;

System.out.println( "\nEnter a letter:" );

String letter = in.nextLine();

if(isChosen==false){

//delaying choosing random word by removing words based on given letter

int matchCount=0;

for (int i = 0; i < dict.size(); i++) {

if(dict.get(i).indexOf(letter.charAt(0)) != -1)

{

matchCount++;

}

}

if(matchCount!=dict.size())

{

for (int i = 0; i < dict.size(); i++) {

if(dict.get(i).indexOf(letter.charAt(0)) != -1)

{

dict.remove(i);

i--;

}

}

}

//choosing the mystery word if there'll be no words left in ArrayList

else{

chosenWord = dict.get(0);

resWord = chosenWord;

isChosen = true;

chosenWord = chosenWord.replace(letter.charAt(0)+"","");

//System.out.println("remaining word: "+ chosenWord);

if(chosenWord=="")

{

System.out.println( "you've cracked the word: " + chosenWord + " in Guesses:" + (maxGuesses-guessCounter));

return;

}

}

}

//if guessed all letters of chosen word

else{

chosenWord = chosenWord.replace(letter.charAt(0)+"","");

//System.out.println("remaining worrd: "+ chosenWord + " : " + chosenWord.length());

if(chosenWord.length()==0)

{

System.out.println( "you've cracked the word: " + resWord + " in Guesses:" + (maxGuesses-guessCounter));

return;

}

}

}

//if ran out of guesses

System.out.println( "you've ran out of your guesses, the word is: " + resWord);

return;

}

}

3 0
3 years ago
Other questions:
  • Software that manages and supports the resources of a computer is known as?
    10·1 answer
  • What should you do if your temperature gauge moves up to just below the red zone?
    10·2 answers
  • To remove an embedded chart, you should _____ it and press the DELETE key.
    14·2 answers
  • Which term is used to describe a network security device or host software that filters communications, usually network traffic,
    14·1 answer
  • What is the root of the tree?
    6·1 answer
  • Fryshta is using the Help window in PowerPoint to learn about inserting Smart Shapes into a presentation. She currently has a He
    12·1 answer
  • Technical colleges offer certification in audio engineering through programs that are normally from 2 to 6 months long.
    6·1 answer
  • Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and the minimum value to minMile
    10·1 answer
  • When researching Information about technology for use in a project, it is NOT important to consider the date that the informatio
    5·1 answer
  • Write a program that takes a string as an input. If the string entered is equal to
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!