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
iragen [17]
3 years ago
8

Write a user input program using if else statements ONLY name of program "Magic number" the user will try guess the Magic number

. The user will enters the number to guess and computer will tell the user if the number matches the Magic number and then determine if the number is smaller or greater than the initial number. The Number that is guessed must be of type int and use Math.random() function to give it random value in range 1 thru 100.
Computers and Technology
1 answer:
goldfiish [28.3K]3 years ago
6 0

Answer:

Explanation:

Hint**

// Var Declarations

Code goes here

//Scanner Code

Code goes here

//check Code logic below

if ()

System.out.println("");

else if ()

System.out.println("");

else if ()

System.out.println();

Expected Output

Secret number is 50

Enter a guess: 50

Your guess is 50 Your guess is correct. Congratulations!

Secret number is 99

Enter a guess: 19

Your guess is 19

Your guess is smaller than the secret number.

Secret number is 72

Enter a guess: 89

Your guess is 89

Your guess is greater than the secret number.

You might be interested in
________ is the actual speed of data transfer that is achieved and is always less than or equal to the data transfer rate. quest
bogdanovich [222]
The correct answer is B. A throughput refers to how much a data can be transmitted from a certain amount of time from one location to another. It is also used to measure the function of hard drives and internet connections.
3 0
4 years ago
Before the 20th century how did most people experience computing​
frozen [14]

Answer:

   

Explanation:

3 0
3 years ago
The incandescent test lamp is used to check for the presence of A. AC current. B. DC voltage. C. DC current.
andriy [413]
Incandescent test lamps are used to check for Alternating Current Voltage and Direct Current Voltage. 

The answer is AC Voltage and DC Voltage. 
5 0
3 years ago
Read 2 more answers
The command-line interface tells a user that it's ready to receive commands by displaying a specific set of characters called a(
Brrunno [24]

Answer:

B) prompt

Explanation:

Prompt tells a user that it's ready to receive commands by displaying a specific set of characters.

For example in <em>windows</em> it can be:

C:\Temp>, The prompt states that user is currently in <em>C </em>drive <em>Temp</em> directory.

in <em>Linux </em>based operating systems it can be:

[email protected]:~/Documents$

where it is in the format [email protected]:~directory$

5 0
3 years ago
I can not let u use mr pototo head
kramer

Answer:

fair enough, but did you know potatoes can produce about 1 volts of energy? Pretty wacky stuff

7 0
2 years ago
Other questions:
  • 11What is the definition of bandwidth? the speed at which bits travel on the network the measure of the transfer of bits across
    7·1 answer
  • Richard Palm is the accounting clerk of Olive Limited. He uses the source documents such as purchase orders, sales invoices and
    12·1 answer
  • 2. What is data redundancy?
    14·1 answer
  • Out of a list of the values 8, 3, 30, 5, 15, and 6, what result would the MIN function return?
    9·2 answers
  • If you selected row 17 and then selected Insert Sheet Rows, row 17 _____.
    13·1 answer
  • An algorithm is Group of answer choices The part of the computer that does the processing A complete computer program The inputs
    6·1 answer
  • Write a program that asks the user for a word. Next, open up the movie reviews.txt file and examine every review one at a time.
    6·1 answer
  • How can ICT be a tool in connecting all stakeholders in your community?
    5·1 answer
  • Select the correct answer from each drop-down menu.
    6·1 answer
  • What data type is this statement defined as in Python?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!