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
Ratling [72]
2 years ago
11

Does anybody have the code to 2.19.4: Guess a Number 2.0 in codeHS??

Computers and Technology
1 answer:
Tcecarenko [31]2 years ago
6 0

Answer:

speed(0)

secret_number = 9

pensize(10)

def green_check():

   color("green")

   penup()

   backward(25)

   right(45)

   pendown()

   forward(35)

   left(90)

   forward(75)

   

def draw_arrow():

   color("red")

   left(90)

   forward(50)

   left(45)

   backward(25)

   forward(25)

   right(90)

   backward(25)

   forward(25)

   left(45)

   backward(100)

   forward(50)

   right(90)

   

user_number = int(input("Guess a number between 1 and 10: "))

while user_number != secret_number:

   if user_number < secret_number:

       draw_arrow()

   else:

       left(180)

       draw_arrow()

       right(180)

   user_number = int(input("Guess a number between 1 and 10: "))

   clear()

   

green_check()speed(0)

secret_number = 9

pensize(10)

def green_check():

   color("green")

   penup()

   backward(25)

   right(45)

   pendown()

   forward(35)

   left(90)

   forward(75)

   

def draw_arrow():

   color("red")

   left(90)

   forward(50)

   left(45)

   backward(25)

   forward(25)

   right(90)

   backward(25)

   forward(25)

   left(45)

   backward(100)

   forward(50)

   right(90)

   

user_number = int(input("Guess a number between 1 and 10: "))

while user_number != secret_number:

   if user_number < secret_number:

       draw_arrow()

   else:

       left(180)

       draw_arrow()

       right(180)

   user_number = int(input("Guess a number between 1 and 10: "))

   clear()

   

green_check()

Explanation:

It's right

You might be interested in
How to scan documents from printer to computer?
Romashka-Z-Leto [24]
The printer should have a control panel. Then you gotta touch Computer to scan to the computer that is connected. Then, touch the name of the computer that you would like to save the scan to. Lastly, touch<span> the scan-to type that corresponds to the document or photo you are scanning.

(By the way, anytime I said 'touch' it meant touch on control panel I believe)

Hope O helped and I apologize if it did not because I own a Mac with no printer. :)</span>
3 0
3 years ago
Session Hijacking refers to the exploitation of a valid computer session where an attacker takes over a session between two comp
noname [10]

Answer:Weak session ID generation algorithm

Explanation: Session hijacking is the hacking by disguising as the authenticated user and illegally exploit the particular computer session. IP packets are invoked by the disguised attacker into the active session between the legal computer user. It is also called session key.

It gives the hacker to use the data and services of the computer in an unauthorized manner. It arises due to the session of communication are not secure and strong,key used for session is weak etc.

5 0
2 years ago
What are two ways technology has helped improve in the way we deal with waste?
topjm [15]
It allow us to monitor and study our environment to better understand how it works and the impact of our actions on it and It allows for paperless communication like email and online bill paying to reduce the amount of trees cut down
3 0
3 years ago
Read 2 more answers
Select the correct answer. Sylvan plans to create an online invitation for a sales event in his organization. What information s
vodka [1.7K]
I believe he should do A first.
8 0
2 years ago
Read 2 more answers
What is the output of this program? numA = 2 numB = 3 if numA == 2 or numB == 2: print("yes") elif numA == 2 and numB == 3: prin
Contact [7]

Answer:

The outcome would be "yes".

Explenation:

numA = 2

numB = 3

if numA == 2 or numB == 2:

   print("yes")

elif numA == 2 and numB == 3:

   print("no")

<u>numA = 2</u>

This line of code declares the variable numA and gives it a value of 2

<u>numB = 3</u>

This line of code declares the variable numB and gives it a value of 3

<u>if numA == 2 or numB == 2:</u>

This part activate the next line of code only if the statement (numA == 2 or numB == 2<u>)</u> is True

   <u>print("yes")</u>

   This code prints out "yes" in the terminal.

<u>elif numA == 2 and numB == 3:</u>

This line of code is similar to the ifstatement above. The code below activates only if the statement (numA == 2 and numB == 3) is True and the previous ifstatement wasn't True.

   <u>print("no")</u>

   This code prints out "no" in the terminal.

5 0
2 years ago
Other questions:
  • You can use Facebook's live feed tool to broadcast content as you post it
    8·2 answers
  • Write Java program to allow the user to input the amount of deposit, yearly interest rate (percentage), and income tax(percentag
    9·1 answer
  • A self-confident person knows that:
    13·1 answer
  • After class, Anita and Bev make plans to study for their psychology exam together but cannot decide on a time or location. In ad
    14·1 answer
  • What is the term for the typical layout of the keys on a keyboard?
    8·2 answers
  • Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
    12·2 answers
  • Certain files, such as the ____ and Security log in Windows, might lose essential network activity records if power is terminate
    9·1 answer
  • Question 3 (2 points)
    6·1 answer
  • Which option is the correct format of placing HTML tags while coding in HTML?
    13·2 answers
  • What career opportunities are available within the floral industry?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!