PLEASE PEOPLE WHO DO PYTHON PLEASE HELP ITS DUE IN THE NIGHT
if you do not know the answer please do not answer otherwise I will report.
the answer that works will get brainliest


Please help me debug this code

PLEASE PEOPLE WHO DO PYTHON PLEASE HELP ITS DUE IN THE NIGHTif You Do Not Know The Answer Please Do Not

Answers

Answer 1

Answer:Yo i was just on this in codehs

Explanation:

def turn_right():

   turn_left()

   turn_left()

   turn_left()

def jump_hurdle():

   turn_left()

   move()

   turn_right()

   move()

   turn_right()

   move()

   turn_left()

while front_is_blocked():

   jump_hurdle()

   

while front_is_clear():

   move()


Related Questions

Can someone help me with this ?

Answers

Answer:

I assume you want to set the opacity (0-100) depending on the mouse's coordinate on the screen. The variables indicating the mouse's coordinates are mouseX and mouseY.

To achieve this, you will need to divide the mouseX/mouseY (whichever you choose) by 4 to what's called "normalize" it. If your mouse was at 320 for example... Dividing it by four would give you 80, and this works because the bounds that the opacity can be set to is 0-100.

normalized = mouseX / 4

Circle(mouseX, mouseY, 50, fill='navy', opacity=normalized)

...or if you want to do it in one line...

Circle(mouseX, mouseY, 50, fill='navy', opacity=mouseX / 4)

Consider the following code snippet:public class Employee{private String empID;private boolean hourly;public Employee(){}. . .}Which statement reflects the action performed when the constructor to Employee is called?

Answers

Answer:

Following are the solution to this question:

Explanation:

In the given question the choices are missing, that's why its solution can be defined as follows:

In the given question, a class Employee is declared, that defines two-variable "empID and hourly", in which both are different in data type, and a default constructor of the class is declared, in this class, the variable empID will be assigned the value that is equal to null, and the variable hourly that assign a value that is equal to false.

Where is the element coded in a web page.

Answers

Answer: Developer tools

Explanation:

To find and view code in a webpage it's often in the developer tools section for most web browsers. Like for Google Chrome click on the 2 dots than more tools than developers tools to enter the console. Then click elements to display a webpage's code. Hope this helps!

Which statement is true?
1)A deque is a type of collection,
2)A collection is a type of deque.
3)A list is a type of deque.
4)A deque is a type of list.

Answers

Answer:

1. A deque is a type of collection.

Explanation:

The statement that is true is as follows:

A deque is a type of collection.

Thus, the correct option for this question is A.

What is Deque?

Deque may be defined as an ordered and systematic collection of items similar to the queue. It is also known as a double-ended queue. It consists of two ends, a front, and a rear, and the items remain positioned in the collection.

According to the context of this question, a deque is a kind of collection that holds data and information identical to a queue. From here, elements can be added to or eliminated from either the front or back very efficiently.

It is also often called a head-tail linked list. Though properly this signifies specific data with appropriate structure that has been the implementation of a deque.

Therefore, a deque is a type of collection that is a true statement. Thus, the correct option for this question is A.

To learn more about Deque, refer to the link:

https://brainly.com/question/16750037

#SPJ2

A free-frame list Select one: a. is a set of all frames that are used for stack and heap memory. b. is a set of all frames that are currently unallocated to any process. c. is a set of all frames that are filled with all zeros. d. is a set of all frames that are currently being shared by at least two processes.

Answers

Answer:

b. is a set of all frames that are currently unallocated to any process

Explanation:

The free frame list is the list that used for all kind of the frames that presently non-allocated to any kind or process

Therefore as per the given situation, the correct option is b as it fits to the current situation

Hence, all the other options are wrong

So, only option b is correct

The same is to be considered

Answer:

b. is a set of all frames that are currently unallocated to any process.

Object-Oriented Programming (Using Java Language)
===============================================

Answers

Answer:

import java.util.Scanner;

class Main {  

 public static void main(String args[]) {

       Scanner scan = new Scanner(System.in);

       System.out.print("Enter a decimal value (0 to 15): ");

       int num = scan.nextInt();

       scan.close();

       

       if (num < 0 || num >15) {

           System.out.printf("%d is an invalid input\n", num);

       } else {

           System.out.printf("The hex value is %X\n", num);

       }

 }

}

Explanation:

Hopefully this example will get you going for the other assignments.

In C 11, the ________ tells the compiler to determine the variable's data type from the initialization value.

Answers

Answer:

auto key word

Explanation:

the auto keyword in c++11 can be regarded as one of the features of

“Type Inference” . It should be noted that in In C ++11, the auto key word tells the compiler to determine the variable's data type from the initialization value.

Multiple Choice
The Boolean operators include which of the following?

A. and, or, not
B. to, for, from
C. a, an, the
D. is, are, not

Answers

Answer:

a

Explanation:

Boolean Operators are simple words (AND, OR, NOT or AND NOT) used as conjunctions to combine or exclude keywords in a search, resulting in more focused and productive results. ... Proximity Operators (with, near and others) can also help you in searching.

ndcdeviceid?????????????????????​

Answers

YESS

Explanation:

YESSssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

C++ Write a program that initially asks a user to enter two positive integer numbers a and b. If either a or are zero or negative, the program terminates right away. Then, generate an array of 20 integer numbers, each randomly generated between a and b. If b happens to be greater than a, then the array must contain elements randomly generated between b and a. Display the whole array on the screen. After creating and displaying the array, the program shows:
[A]verage [S]um [F]ind Please choose an option: Then, if the user selects:
- A (lowercase or uppercase): the program computes and displays the average of all elements of the array
-A (lowercase or uppercase): the program computes and displays the average of all elements of the array
-F (lowercase or uppercase): the program asks the user to insert an integer number to be found in the array
If present, the program displays "Found in position number followed by the position of the first occurrence.
If not present, the program displays "Number not found in the array"

Answers

Answer:

#include <iostream>

#include <algorithm>

using namespace std;

int main(){

   int a, b, c[20], search, maxi, mini, totalSum = 0;

   char option;

   int * p;

   cout<< "Enter value for a: ";

   cin>> a;

   cout<< "Enter value for b: ";

   cin>> b;

  if (a == 0 || b == 0){

      cout<< "Both values must be greater than zero.";

  } else if(a>b){

        maxi = a;

       mini = b;

   }

else{

        maxi = b;

        mini = a;

   }

    for (int i =0; i < 20; i++){

        c[i] = (rand() % maxi) + mini;

        totalSum += c[i];

    }

   cout << "Please choose an option: 1 , 2, 3 ";

   cin>> option;

   option = tolower(option);

   switch(option){

       case 1:

           cout << "The Average of the array items is: "<< totalSum/20;

           break;

        case 2:

           cout<< "The sum of the array items is: "<< totalSum;

           break;

       case 3:

            cout<< "Enter number to be searched: ";

            cin>> search;

             p = find (c, c+20, search);

             if (p != c+20)

{

                cout << "Element found in c array: " << *p << '\n';

             }else{

                 cout << "Element not found in c array\n";

             }

             break;

   }

}

Explanation:

The C++ source code prompts the user for the a,b, option and search values and executes either of the options from the switch statement.

Answer:

#include <iostream>

#include <algorithm>

using namespace std;

int main(){

int a, b, c[20], search, maxi, mini, totalSum = 0;

char option;

int * p;

cout<< "Enter value for a: ";

cin>> a;

cout<< "Enter value for b: ";

cin>> b;

if (a == 0 || b == 0){

cout<< "Both values must be greater than zero.";

} else if(a>b){

maxi = a;

mini = b;

}

else{

maxi = b;

mini = a;

}

for (int i =0; i < 20; i++){

c[i] = (rand() % maxi) + mini;

totalSum += c[i];

}

cout << "Please choose an option: 1 , 2, 3 ";

cin>> option;

option = tolower(option);

switch(option){

case 1:

cout << "The Average of the array items is: "<< totalSum/20;

break;

case 2:

cout<< "The sum of the array items is: "<< totalSum;

break;

case 3:

cout<< "Enter number to be searched: ";

cin>> search;

p = find (c, c+20, search);

if (p != c+20)

{

cout << "Element found in c array: " << *p << '\n';

}else{

cout << "Element not found in c array\n";

}

break;

}

}

Explanation:

The C++ source code prompts the user for the a,b, option and search values and executes either of the options from the switch statement. Is correct

Explanation:

Great work person above me! :)

with your basic knowledge in basic embroidery stitches, how will you motivate your family members the importance of learning basic embroidery stitches​

Answers

What are embroidery stitches?

Write a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as:

Project 5-11 output

The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.

Answers

Answer:

6

Explanation:

the answer would have to be 6

1. Software that is designed to intentionally cause harm to a device, server, or network is A. outware B.loggerware C.
attackware D. malware Answer:
2. Some examples of malware include: A. robots, viruses, and worms B. trojans, worms, and bots C. computerware,
worms, and robots D.worms, system kits, and loggerware Answer:
3. Viruses and worms can affect a system by A. deleting hard drives B. slowing down the system C. improving system
functions D. producing fake applications Answer:
4. One tool that hackers use to get sensitive information from victims is/are A. loggerware B. keyloggers C.robots D.
phishing Answer:
5. One key feature of malware is that it A. can only work individually B. can only work on certain operating systems C.
can work jointly with other malware types D. can always be stopped by anti-malware software Answer:
6. One vulnerability that makes computers susceptible to malware is A. using anti-malware software B. using password
protection C. using old versions of software D. using encryption on sensitive files Answer:
7. Malware could A. cause a system to display annoying pop-up messages B. be utilized for identity theft by gathering
personal information C. give an attacker full control over a system D. all of the above Answer: -
8. Malware is a combination of which two words? A malevolent and software B. malignant and software C.
maladapted and software D. malicious and software Answer:
9. The most common way that malware is delivered to a system is through the use of A USB sticks B. damaged
hardware C. emails/attachments D.updated software Answer:
10. Mobile malware is A. malware that moves from one device to another B. malware that moves to different areas in
one system C. malware that deactivates after a period of time D. malware that infects smartphones and tablets
Answer:

Answers

Answer:

Explanation:

1.  D Malware causes harm, the other answers seem irrevelant.

2.  B Because they all can cause harm to a server, device or network. (trojan for device, worm for device and bots for networks)

3.  B I haven't heard of viruses deleting hard drives, but lots of viruses do slow

down your computer.

4. D Phishing is a way to obtain data so yes.

5. ? This one is wierd... We can rule out D because that's not always true but you have to decide this on your own.

6. Obviously C? Using old versions can make your computer more

susceptible to malware.

7. D Because all of those can be uses.

8. D Malicous software

9. This is a hard one... Not D, Most likely not B and C is probably more

common.

10.  D It's MOBILE malware

Why would students most likely need to collect data? Check all that apply.

to answer a question
to purchase an item online
to support a position
to understand a problem
to sort documents

Answers

Right options are

A. to answer a question

C. to support a position

D. to understand a problem

Have an amazing day! <3

Students most likely need to collect data

A. to answer a question

C. to support a position

D. to understand a problem

What is data?

Data refers to a raw piece of record providing facts about any concept which is processed in order to develop information. The information is referred to as a systematic representation of data.

Data that cannot be quantified numerically is referred to as qualitative data, and no quantity can be derived from them. Information that may be measured in quantity is referred to as quantitative data.

This data is used for various purpose which includes in order to provide any solution or any answer to any question based on facts and evidence.This data can be used to understand the problem and its root cause so that appropriate solution can be provided.

Learn more about data, here:

https://brainly.com/question/1417786

#SPJ6

true or false storage is a systematic series of action that a computer uses to convert input to output​

Answers

Answer

The answer is false

what feature should be used before a document is printed

Answers

Print preview is a feature that displays on the screen what a hard copy would look like when printed. By using print preview, you can find any errors that may exist or fix the layout before printing, which can save ink or toner and paper by not having to print more than once.

When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise. A. True B. False

Answers

Answer:

False

Explanation:

It is FALSE that When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise.

This is because the "try/except" function is a python programming language function that is used in python to solve issues like race conditions, controlling errors in loops, file handling, database communication, network access, and many more.

The statement, "When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise" is:

False

According to the given question, we are asked to show if the given statement is true or false about the use of a try/except block to catch errors when getting data from a URL.

As a result of this, when reading data from a Universal Resource Locator, it is not good practice to make use of a try/except block to try and catch any errors that may occur because this is a function which is used to solve race conditions and to handle error loops.

Therefore, the correct answer is False.

Read more here:

https://brainly.com/question/24131915

Type the correct answer in the box. Spell all words correctly.

A freelance graphic designer has received an assignment to design a company logo. What image format is most suitable to display this logo on the company website?

The _________ format is most suitable in order to display the logo on the company website.

Answers

Answer:

The most suitable format for logo is PNG

Explanation:

PNG stands for portable network graphics. It is an improved version of gif. The best thing in png is that it is lossless compression and the background is not visible. Both 24 and 32 bit Colour can be used in png. PNG became ISO standard in sixteen years ago in 2004.

Given class SimpleCar , which line has a syntax error? public class SimpleCar { private int odometer; public void drive(int miles) { odometer = odometer + miles; } } 1 Object objCar; 2 objCar = new SimpleCar(); 3 System.out.println(objCar.toString()); 4 objCar.drive();

Answers

Answer:

4 objCar.drive();

Explanation:

The java program defines a class called SimpleCar which has a void method called drive() that accepts one integer argument.

A method is a function defined in a class. The drive() method used in the program has no argument and so would throw an error message.

Which type of error occurred in the following lines of code?


>>> print(9 / 0)

Traceback (most recent call last):

File " ", line 1, in

9/0

ZeroDivisionError: division by zero
Answer choices:
reserved word error

logical error

exception

syntax error

Answers

Answer: Logical Error

The division by 0 is a logical error.

PLS HELP For this activity, you can use the audio recorder on your cell phone or a digital camera to record the following sounds: • the sound of footsteps of someone walking towards you
• the sound of a person starting a car, rewing the engine, and driving away
• the sound of a phone ringing at home as you walk toward it the sound of somebody speaking to you as you walk toward that person
After you record these sounds from different sources, play them back and observe the differences in the recorded sound from each source. Write a note recounting your experience and observations for each of these recordings.​

Answers

Answer:

So you put down what is recorded. Because every time you Play back the audio it sound's different. When you are doing the Exp. It's Called Sound waves My Friend

Explanation:

Answer:

I recorded the four types of sounds as mentioned in the question. When I played them back, they seemed to create a dramatic effect.

The footsteps sounded quite dramatic and added purpose to the activity. I recorded the sound of my sister's footsteps as she walked down the stairs in high heels and then as she walked past me. When I was recording the sound, the footsteps sounded normal. However, when I heard the recorded footsteps, the sound of the slow, approaching footsteps created a sense of mystery. Who was the person walking down the stairs? Why was the person hurrying past me? Did she achieve what she set out to do? In addition, I noticed perspective in a sound effect for the first time. It started softly and then became louder. As she moved past me and went away, it became softer again until it finally faded away.

The engine noise, and the sound of starting and driving the car, brought out the innate nature of the sound and emphasized that there is more to starting an engine than just moving the car. For instance, when the car engine started, it was clear that the driver was heading somewhere. The car's constant "vrooming" noise indicated that the driver was waiting to drive. However, the question is, "What's the rush?" The sound of the car driving away indicated that the driver finally drove away. I also noticed that the way the car drives away reveals the driver's state of mind. When the driver is in a rush and swerves and drives away at great speed, there will be drama. This is different from the peaceful, non-rushed driving style of a person going out for a drive with his or her family. The sound of people going to work will be different from the sound of people going on a holiday or going shopping on a weekend.

Walking toward a ringing phone added an element of surprise to the action. I placed the recorder near the phone and could hear myself walking toward it. When I heard the recorded sound, it sounded as though I was in no rush to pick up the ringing phone. It sounded just like any other regular action, not one filled with drama or mystery.

As I walked toward my friend while he spoke, his voice sounded louder and clearer. The effect was similar to zooming in on an image from a distance. This adds perspective to sounds and voices, and it adds depth to the visuals as well.

Explanation:

PLATO ANSWER

Write a static method that takes a String and returns an integer. Return the number of characters in the passed in, String parameter.

Answers

Answer:

Explanation:

The following code is written in the Java programming language. It is a function called howBig that takes in a String as a parameter and returns an int. The function grabs the string and then detects the size of the String (number of Characters it has) and then places that number into an Integer variable called wordSize. Then it returns the variable wordSize.

public static int howBig (String myWord) {

       int wordSize = myWord.length();

       return wordSize;

   }

Following are the Program to the given question:

Program Explanation:

Defining a class "Main".Inside a class, a method "Length" is defined that takes string variable "s" as the parameter.Inside the method,  a conditional statement is defined that checks length of the string value and prints its value.In the next step, the main method is declared that calls the length method, and print its return value.

Program:

public class Main //defining a class Main  

{

   public static int Length(String s)//defining a method getLength that takes String parameters

   {

       if(s==null)//defining if block that check s parameter value equal to null

       {

           return 0;//return 0

       }

       else //defining else block

       {

           return s.length();//using return keyword that return length of String

       }

   }

   public static void main(String[] args) //defining a main method

   {

       System.out.println(Length(null));//calling method and print its value

       System.out.println(Length("abcd"));//calling method and print its value

   }

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/19737952

Other Questions
1. Software that is designed to intentionally cause harm to a device, server, or network is A. outware B.loggerware C.attackware D. malware Answer:2. Some examples of malware include: A. robots, viruses, and worms B. trojans, worms, and bots C. computerware,worms, and robots D.worms, system kits, and loggerware Answer:3. Viruses and worms can affect a system by A. deleting hard drives B. slowing down the system C. improving systemfunctions D. producing fake applications Answer:4. One tool that hackers use to get sensitive information from victims is/are A. loggerware B. keyloggers C.robots D.phishing Answer:5. One key feature of malware is that it A. can only work individually B. can only work on certain operating systems C.can work jointly with other malware types D. can always be stopped by anti-malware software Answer:6. One vulnerability that makes computers susceptible to malware is A. using anti-malware software B. using passwordprotection C. using old versions of software D. using encryption on sensitive files Answer:7. Malware could A. cause a system to display annoying pop-up messages B. be utilized for identity theft by gatheringpersonal information C. give an attacker full control over a system D. all of the above Answer: -8. Malware is a combination of which two words? A malevolent and software B. malignant and software C.maladapted and software D. malicious and software Answer:9. The most common way that malware is delivered to a system is through the use of A USB sticks B. damagedhardware C. emails/attachments D.updated software Answer:10. Mobile malware is A. malware that moves from one device to another B. malware that moves to different areas inone system C. malware that deactivates after a period of time D. malware that infects smartphones and tabletsAnswer: A person would never have pure water put into their veins in a hospital because their cells would what? Libertarians have had candidates elected to all of the following offices EXCEPT: True or false are all structures made by humans and why Why are jails referred to as the "shame of the criminal justice system"? A. because jails are smaller than prisons B. because most jails are old, poorly funded, and understaffed C. because jails only serve food that is cold D. because jails are run by local town organizations 40 Answered In The Pearl, how does Kino react to the doctor's rejection? PLZZZZZ ANSWER ASAPPPPP 1. Calculate the unit rate: 324.8 meters in 28 seconds The length of a rectangle is twice its width, while theperimeter of the rectangle is 36 units. . Which system ofequations can be used to find the length ( and the width wof the rectangle? A pool is being filled at a constant rate of 5 gallons every 2 minutes. Which graph has a slope that best represents this rate? Please help!! Will mark brainilest I need help with this question pleaseeee A store sells grape jelly in 16-ounces jars for $ 4.68. How much is the jelly per ounce? How may the introduction of the slave data change the discussions over representation? Explain how you got that answer...Emma is scrapbooking. She has 9 inches of paper and needs to cut it into 2/5 inch stripes of paper. How may strips will she be able to make have any of yall ever drew a mineral/gemstone? if u have tell me if it was hard or easy. Use the drop-down menus to identify different parts ofthis procedure.The goal:The title:A material:A specific detail: Gas prices are expected to rise 5% each week for the next six weeks. Kevin spent $52.50 to fill his tank this week.Which of the following represents the total amount Kevin can expect to spend to fill his tank over the next threeweeks, if he fills his tank once a week?$52.50 + $55.13 + $57.76$52.50 - $55.13 + $57.88$55.13 + $57.76 - $60.39$55.13 - $57.88 + $60.78 Decomposers _______O add nutrients to the soilO feed on dead animalso include bacteriaall of the above Which size bottle of ketchup is the best deal with the lowest unit price?Prices for Different Sizes of Bottles of KetchupSize BottlePrice10 oz.$2.5014 oz.$2.8016 oz.$4.0018 oz.$5.40 2) How old am I if 300 reduced by 4 times my age is 44?