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]
3 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]3 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
To make the most informed purchasing decision, you should:
musickatia [10]

Answer:

its either A or B but im leaning more towards B

Explanation:

6 0
2 years ago
Mrs. Patel uses a computer program to balance her checkbook. Which of the following best explains how the
Alexandra [31]

Answer:

c it reduces errors

Explanation:

Instead of Mrs.Patel doing it she has an online program made for checks to do it for her.

6 0
3 years ago
1. Here is a program segment to find the quantity base . Both base and exp are entered at the keyboard. System.out.println("Ente
zavuch27 [327]

Answer:

The correct code to this question can be de4fined as follows:

double power;

power = Math.pow(base, exp);

Explanation:

In the given question the choices were missing, that's why we defined the correct code only.

  • In the given code a two double variable "base and exp" is declared, that input the value from the user-side, and store its value into there respective variables.
  • In the next step, "power", that is a double variable is declared, which uses the  "Math.pow" function that calculates given values power and prints its value.

please find the attachment of the full code.

3 0
3 years ago
Gaven's instructor told him to include a personal statement in his work portfolio. Why did his instructor recommend including a
algol [13]
The recommendation of the instructor for Gaven to include a personal statement in his work portfolio will allow him to identify his career goals. If he is unable to show this to his work portfolio then he may simply state it in the personal statement. Thus, the answer to this item is letter A. 
3 0
3 years ago
Health informatics is an interdisciplinary field which incorporates theory and methodology from fields in computer science. True
noname [10]

Health informatics is an interdisciplinary field which incorporates theory and methodology from fields in computer science is True.

True

<u>Explanation:</u>

To capture patient health information they used interdisciplinary field which is consists patient information and they diseases and cure treatment taken for that patient. All information is store in digital formatted.

The patient information is stored such as health informatics, nurse and doctor treatment, health treatment, medicine details, clinics information.

Health informatics are used to do further analysis on patient health. Doctors are using this information for their further treatment for their patient also.

Information are also can be used as IOT information so that patient information are readily available.

3 0
4 years ago
Other questions:
  • Write a for loop that iterates from 1 to numbersamples to double any element's value in datasamples that is less than minvalue.
    15·1 answer
  • Which of the following is NOT a group on the Slide Master tab?
    6·1 answer
  • Create a program that reads words.txt (link near top of our home page) in order to: determine the length of the longest word(s)
    14·1 answer
  • Which of the following explains the growing need for a standard IT professional licensing program? Check all of the boxes that a
    11·1 answer
  • Write a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number is actually less
    6·2 answers
  • Drag each tile to the correct box.
    9·1 answer
  • . When would one use the analytic application fraud detection?
    12·1 answer
  • How does a programmer use digital waves to transfer sound?
    11·1 answer
  • Complete main() to read dates from input, one date per line. Each date's format must be as follows: March 1, 1990. Any date not
    10·1 answer
  • Read-only memory chips are used to
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!