Please Help ASAP. Marking Brainliest For Correct Answer.

Explore the program below, referring to the task description to know what task the chunk of code is supposed to execute. Explain why the program is not working as intended, then rewrite/rework the program so that it performs the intended task as stated in the description.

The following situation uses a robot in a grid of squares. The robot is represented by a triangle which is initially in the top left square and facing right. The robot may not travel through the black squares. The program below is intended to move the robot from its starting position to the gray square, but it is not currently working. The program segment uses the procedure called GoalReached , which evaluates to true if the robot is in the gray square and evaluates to false otherwise.

In complete sentences, explain why the program is not working as intended, and also provide a solution that allows the program to perform its intended task.

Please Help ASAP. Marking Brainliest For Correct Answer.Explore The Program Below, Referring To The Task

Answers

Answer 1

Answer: It is not working because it is missing the code needed to turn right.

Sentence :The robot would move forward two squares and would stay stuck there because it can not move forward nor turn left. You would need to add code for the robot to be able to turn right so that the robot can reach the goal

Answer 2

There are several reasons that could make a code segment not to work.

The attached code is not working because, the method ROTATE_RIGHT() is missing

From the given code segment, we have the following observations

The robot can turn left using ROTATE_LEFT()The robot can move forward using MOVE_FORWARD()

However, when there is a need for the robot to turn right, the code segment does not have a provision for that.

Hence, the reason the code is not working is because:

The method ROTATE_RIGHT() is missing

The solution to this is to provide a ROTATE_RIGHT() method in the code segment

Read more about debugging at:

https://brainly.com/question/23527739


Related Questions


(6) A man buys some chocolates for Rs. 30.25, noodles for Rs. 65.25 and biscuits for Rs.
85.50. If he gives Rs. 200 to the shopkeeper, how much money will he get return back​

Answers

19 Rs ( अनीस रुपए)

Explanation:

that is 200

Write a program to show the grade obtained by a student after he/she enters their total mark percentage. Program should accept an input from the user and display their grade as follows Mark Grade < 90 A 80-89 B 70-79 C 60-69 D 50-59 E < 50 Failed

Answers

Write a program to show the grade obtained by a student after he/she enters their total mark percentage. Program should accept an input from the user and display their grade as follows Mark Grade < 90 A 80-89 B 70-79 C 60- the answer would 89 B:C cause that's then the things were alive.

why does elephant has thicker legs? Explain in terms of breaking stress?​

Answers

Answer:

Since volume is proportional to area, volume is inversely proportional to pressure.

An elephant has a greater weight towards Earth's surface, so it has a larger legs of larger volume which exerts less pressure on Earth's surface in order to prevent it from immersing in soil, or soft land

Viewport: Fresh User Location: Outside of the Viewport What is the correct technique when measuring the distance of a result outside of the viewport?A. Measure from the outer edge of the viewportB. Measure to the center of the viewport (device icon)C. Measure to the User locationD. All of the Above

Answers

Answer:

The answer is "Option A".

Explanation:

It's also better and measures the distance returned to a viewport to accomplish the right angle from the result produced outside the viewfinder. Its reason for this is that the outer edge of a perspective is where all the perspective begins.

The Viewport is a new client location that is the outside of the Viewfinder that Calculates the distance with an external edge of a viewfinder from the outside of the viewfinder is a methodology.

state differences between title bar and menu bar​

Answers

Answer:

The answer to this question is given below in this explanation section.

Explanation:

                              "Title bar"

A title bar is a small strip that extends across the top of a window.It display the title of the window and typically include the close minimize and maximize button.In macros these buttons are on the left side of the title bar while in windows they are on the right.The title bar is a horizontal bar located at the top of a window in a GUI.It displays the title of the software name of the current.

                                   "Menu bar"

A menu bar is a graphical control elements which contains drop down menu.The menu bar purpose is to supply a common housing for window or application specific menu which provide access to such function as opening file interaction with an application or displaying help documentation or manuals.

Which of the following is a good way to keep your knowledge of Internet technology current? Select all that apply.


Find a mentor in the field.
Monitor technical website discussion boards.
Attend local career days.
Research organizations dedicated to advancing the Internet.

Answers

Answer:

Find a mentor in the field.

Monitor technical website discussion boards.

Attend local career days.

Research organizations dedicated to advancing the Internet.

When do I use while loops

Answers

Answer:

When you dont know how long the loop is going to run for

Explanation:

prepare a model of an editorial on "social problems and evils are the adversary factors of progress and prosperity"​

Answers

Answer:Social problems are the issues that are collectively faced by a society. It is not only related to one individual but a whole society. For example; illiteracy, poverty, infanticide, child abuse, child labour etc.

Social problems are the issues that are collectively faced by a society. It is not only related to one individual but a whole society. For example; illiteracy, poverty, infanticide, child abuse, child labour etc. Social evils are those activities that negatively affect a country. For example; alcoholism, drug abuse, prostitution etc.

Social problems are the issues that are collectively faced by a society. It is not only related to one individual but a whole society. For example; illiteracy, poverty, infanticide, child abuse, child labour etc. Social evils are those activities that negatively affect a country. For example; alcoholism, drug abuse, prostitution etc. Both social problems and evils badly affect a country. They are a hurdle in the development of the country.

Thanxxxx

Explanation:

which of the following is a likely problem for a driver in an urban area? A. fame animals on the roads B.not finding a gas station

Answers

Answer:

D. Line of sight restrictions

Explanation:

The urban area is denser when it comes to the population of people compared to the rural area. This means that the traffic is heavy and there are many people crossing the streets. The buildings are also tall. These things block the person's view upon driving to his target destination. Therefore, he has many line-of-sight restrictions when driving in the city. He needs to be more careful in driving by using his mirrors in order to prevent accidents. Unlike in the countryside, the target area is usually visible to the sight of the driver.

Answer:

D. line of sight restrictions

Explanation:

In what order does the Cascade look at factors to determine which CSS rule to follow?

Answers

Answer:

In other words, the CSS rules can "cascade" in their order of precedence. Where the rules are located is one factor in the order of precedence. The location order of precedence is: browser default rules, external style sheet rules, embedded styles, and inline style rules.

Which of these cannot be used to open a zip file?
O WinZip
O WordPad
File Viewer Plus
O Apple Archive Utility

Answers

Answer:

c

Explanation:

bc

PLEASE HELP!!!!


Which of the following statements about content-based filtering is TRUE?

A. With content-based filtering, users receive recommendations for items liked by similar users.

B. With content-based filtering, users receive recommendations for items that are similar in type to ones they already like.

C. Both A and B are true

D.Neither A nor Bare true​

Answers

Answer:

D

Explanation:

It means its based on things similar to what you are reading or looking at.

The statement that is true about content-based filtering is; A. With content-based filtering, users receive recommendations for items liked by similar users.

What is Content based Filtering?

Content-based filtering is defined as a type of recommender system that attempts to guess what a user may like based on that user's activity.

Now, from the given options we can say that option A is correct because it matches the description we have above about Content based filtering.

Read more about Content based filtering at; https://brainly.com/question/10043488

#SPJ9

HELP I WILL MARK BRAINLIEST TO CORRECT ANSWER ! VERY EASY
Which two things caused a demand for cotton?
sewing machine
carding machine
cotton gin
cotton mill

Answers

Answer:

Cotton Gil, And Cotton Mill

Explanation:

Answer:

It would be Cotton Gin and the Cotton Mill

Explanation:

The wrong answer is: Sewing machine- wasn't invented yet, Carding Machine- Wasn't invented yet.

use of the Internet to access programs and data on computers that are not owned and managed by the user often using large data centers

Answers

Answer:

Cloud computing

Explanation:

Given that Cloud computing is a term that is used in explaining the method in which the users utilize big data centers like Amazon Web Services, Microsoft Azure, etc, to carry out functions such as storing and accessing created data and files, and formation of the database online without saving it on the user's computer.

Therefore, CLOUD COMPUTING is the use of the Internet to access programs and data on computers that are not owned and managed by the user often using large data centers.

Since nobody answered, I'm gonna just try this again. I really need help with this so please-

Answers

Answer:

3.8

Explanation:

Add a method reflect_x to Point which returns a new Point, one which is the reflection of the point about the x-axis. For example, Point(3, 5).Reflect_x() is (3, -5)

Answers

Answer:

Following are the code to this question:

class Point:#defining a class Point

   def __init__(self, x, y):#defining a constructor that takes three parameters  

       self.x = x#use self to hold x variable value

       self.y = y#use self to hold y variable value

   def Reflect_x(self):#defining a method reflect_x that hold object self

       return Point(self.x, (-1) * self.y)#use return keyword that return positive x and negative y value

   def __str__(self):#Use __str__ to convert object value into string  

       return "Point(" + str(self.x) + "," + str(self.y) + ")"#return string value

py = Point(3, 5)#defining a variable py that call class by passing the value  

reflect = py.Reflect_x();#Use variable reflect to hold Reflect_x value

print("P:", py)#print value

print("Reflection about x axis of p:", reflect)#print value

Output:

P: Point(3,5)

Reflection about x axis of p: Point(3,-5)

Explanation:

In the code, a class "Point" is declared, inside the class, a constructor is created that hold three-parameter "self, x, and y", and use a self to hold x and y values.

In the next step, a "Reflect_x" method is defined that uses a class object and converts the x and y values, and in the next step, the str method is used that converts an object value into a string and return its values.

Outside the class, a py variable is defined, that holds Point values and pass into the Reflect_x method, and prints its return values.

........ is used to move and select and move items on he computer screen and to give different commands to the computer.

Answers

Answer:

Isn't it the mouse?

Tell me if wrong. :) Hope it helps!

Explanation:

which is many many years of vot in nepal.​

Answers

Answer:

18 yrs

Explanation:

Which are Career and Technical Student Organizations? (Check all that apply.)
Business Professionals of America
American Association of School Administrators
American Chemical Society
DECA
Future Business Leaders of America
OFFA
Skills USA
FCCLA

Answers

Answer:

1,4,5,6

American Institute of Architects

American Medical Association

Screen Actors Guild

American Society of Mechanical Engineers

Explanation:

correct on edge

Why is a niche important in video production

Answers

Answers

You need a niche to start your recording for let's say commentary you'll need that for your commentary.

Answer:

A . A reviewer must be able to make changes to a presentation after an author creates it

In a single paragraph, write about the development of HTML and its relevance to the growth of the Internet.

Answers

Explanation:

This chapter is a short history of HTML. Its aim is to give readers some idea of how the HTML we use today was developed from the prototype written by Tim Berners-Lee in 1992. The story is interesting - not least because HTML has been through an extremely bumpy ride on the road to standardization, with software engineers, academics and browser companies haggling about the language like so many Ministers of Parliament debating in the House of Commons.

1989: Tim Berners-Lee invents the Web with HTML as its publishing language

The World Wide Web began life in the place where you would least expect it: at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland. CERN is a meeting place for physicists from all over the world, where highly abstract and conceptual thinkers engage in the contemplation of complex atomic phenomena that occur on a minuscule scale in time and space. This is a surprising place indeed for the beginnings of a technology which would, eventually, deliver everything from tourist information, online shopping and advertisements, financial data, weather forecasts and much more to your personal computer.

What are important acronyms we use when we talk about the internet? this is for computer science.

Answers

Answer:

Lol

Brb

Btw

Gtg

Explanation:

I hope this helps

Which best describes what databases do?
O They guarantee users find needed data.
O They create categories for data.
O They identify important data.
O They enable users to search for data.
Plz help me I will mark u brainlest!!!

Answers

Answer:

They create categories for data.

Explanation:

They can create categories for data, by storing the data. Information itself can be stored in multiple ways, like creating categories!

I hope this helped :)

Answer:

A. They guarantee users find needed data.

Explanation:

Storage.
• Mouse
• Laser Printer • Hard Disk
• Speaker • Joystick
Digital Video Camera
- CD-ROM
• Scanner
• Monitor
Microphone
Answer the following.
List the four basic hardware components of
computer.
What is an input device? Name some input devices an
mention what they are used for.
Megha Computer Science - 6​

Answers

Answer:

Part A

1) Mouse

2) Monitor

3) Hard Disk

4) Joystick

Part B

i) An input device is used to provide input signal to the computer or other information technology system for processing

ii) scanners, joysticks, mouse, and keyboards

iii) a) A scanners is used to create digital image input

b) A joystick is mainly used in gaming

c) The (computer) mouse is moved on a flat surface to navigate the mouse pointer

d) A (computer) keyboard is used for data input into the

Explanation:

Part A

The list of the four basic hardware components of computer are;

1) Mouse

2) Monitor

3) Hard Disk

4) Joystick

Part B

i) An input device is an equipment with which computer control signal and data are entered into a computer or other forms of technology for processing information.

ii) Input devices includes, scanners, joysticks, mouse, and keyboards

iii) a) A scanners is used to create digital image input for the computing system

b) A joystick (mainly used in gaming) consists of stick with control buttons that pivots on an attached base whose movement and control button input are reported to the information technology processing system, such as a computer to which it is attached

c) The (computer) mouse is moved on a flat surface to navigate the mouse pointer displayed on a graphical user interface for controlling and operation of a computer

d) A (computer) keyboard is a primary computer input device that is very much similar to a typewriter keyboard in design and functioning

Data input to the computer are made by typing values using the keyboard

In Word, you can format the font, size, and alignment but not the color of text.

Answers

Answer:

You can change color of text as well.

Explanation:

It is false that in word one can format the font, size, and alignment but not the color of text.

What is text formatting?

In computing, formatted text, styled text, or rich text, as opposed to plain text, is digital text that contains styling information in addition to the bare minimum of semantic elements: colors, styles, sizes, and special HTML features.

Formatted text is text that is displayed in a specific manner. Formatting data may be associated with text data in computer applications to generate formatted text.

The operating system and application software used on the computer determine how formatted text is created and displayed.

In Word, you can change the font, size, alignment, and even the color of the text.

Thus, the given statement is false.

For more details regarding text formatting, visit:

https://brainly.com/question/766378

#SPJ2

True or False: Python code can include a script that returns the operating system platform
your code is running on with the .sys

Answers

True

import sys

print(sys.platfom)

This will print, to the console, which type of platform is running.

What is the full path and filename for the file on a Debian Linux distribution that displays the time zone settings?

Answers

Answer:

/etc/timezone

Explanation:

Debian based Linux distribution is a free distribution software and an operating system. It is composed of a open source and free source software. It is one of the most popular distributions.

A computer file name is a unique system of identifying the computer stored file in the file system. The names of the different file system have different formats or extensions in the file name and imposed different file restrictions.

In the context, the full path and the file name of a file that displays a time zone settings on a Debian Linux distribution is " ../etc/timezone".

Give the uses of Word’s mail merge.

Answers

Answer:

Mail Merge is a handy feature that incorporates data from both Microsoft Word and Microsoft Excel and allows you to create multiple documents at once, such as letters, saving you the time and effort of retyping the same letter over and over.

How are computers used in education and entertainment? List them.​

Answers

Answer:

The answer to this question is given below in this explanation section.

Explanation:

              "computers used in education and entertainment"

Computers started as very and simplistic machines data.Most of these files were text-based reports used in a work environment.As technology advanced,computer became increasingly versatile in what they could do.With the creation of the internet and faster processors,file sharing and entertainment became a popular use for personal computer everywhere.Computer have endless users in the entertainment industry by directly marketing products to users.

MusicTelevision and moviesArtGames

Many websites services allow users to purchase individual tracks or albums directly to their computer.Most record labels take advantage of these services to makeup for lost revenue from illegal downloading.

When the advantages of video card and internet speed,moving and streaming television are now at the click of a mouse button.Some websites even offer free streaming episodes of certain TV series with internet commercials.

Art is something that is readily available online at any moment. Pictures,Painting,Poetry and more are just a click away.Popular browsers offer specific image search option to quickly browse through art with a single keyword.Beside general use,computer photo editing programs and animation programs are also the sources behind most movies and professional photographs.

If the active cell contains a formula, it will be shown on _______.

Answers

The answer would be: a formula bar
Other Questions
Which answer below could represent velocity?A. 45 mphB. 45 mph NC. 45 mph(2) You have just engaged a new client who has been in business for over a year and has been using Excel to track her monthly business activity. Which 2 actions can help this client quickly transfer her data into her new QuickBooks Online company?A. Use File upload tool in the Banking Center to upload banking activity.B. Select Transfer under the Create (+) menu.C. Select Migrate Data in the Account and Settings menu.D. Import lists using the Import Data Tool. Johanna took $125 to the mall. She bought 5 shirts (s) that cost the same price. Which expression represents the amount of money, in dollars, that Johanna had after she bought the shirts? Given: Quadrilaterals ABCD ~ EFGH , with measure of angle A = 47 degrees, measure of angle B = 39 degrees, and measure of angle C = 112 degrees. Find: Measure of angle F and measure of angle H. Help me please 40 points for this math question How did the spread of Islam affect the East coast of Africa? It my Brother Algebra work, Law of Exponents. Please help! Thanks. A recipe for pie dough calls for a ratio of butter to flour of 1/4 : 5/6. If you plan to use 5 cups of flour, how much butter should you use to keep the same ratio? Which of the following British actions led the American colonists to claim that taxes were imposed without their consent?Passage of the Stamp ActCreation of the Intolerable ActsAdministration of the Quebec ActEnforcement of the Quartering Act Do you think that George W. Bush reacted well to theforeign threat? Why or why not Divide. Write your answer in fraction form.(5x+ + 18x+ 15) / (x+2) Type the correct answer in the box. Spell all words correctly.Helen has a pet parrot. She uses Teflon-coated pots and pans for cooking. Complete the sentence to help Helen understand how her pet may beexposed to toxins.Birds can be poisoned throughif they are exposed to some chemicals from Teflon-coated vessels. what happened at the Stamp Act Congress of 1765 Samuel and Ashley are shelving books at the public library. Samuel shelves 5 books at a time, whereas Ashley shelves 6 at a time. If they end up shelving the same number of books, what is the smallest number of books each could have shelved? Part of the sun's 3that reachesthe earth's surface is absorbed by land and water as heat. The earth's surface then releases heat back to the atmosphere. f(x)=3x+3, then f^-1(x)= sin=3-1/2 find approximate value of sec(sec+tan)/1+tan Romeo and julietodysseytale of spartacustencaptain underpantsdog man the iliad roald dahl books and morefav books rted best to worst what is the slope of points (3,5) and (-1,-7) 5w2w+3w=9 whats whelp Steam Workshop Downloader