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
Veseljchak [2.6K]
3 years ago
8

Can anyone fix this code for me?

Computers and Technology
1 answer:
nignag [31]3 years ago
3 0

Answer:

function start(){

move();

for(var i = 0; i < 2; i++){

move();

move();

jumpHurdle();

if(frontIsClear()){

move();

}

}

move();

move();

move();

function jumpHurdle(){

turnLeft();

move();

turnRight();

move();

turnRight();

move();

You might be interested in
Write a program that reads in an integer value for n and then sums the integers from n to 2 * n if n is nonnegative, or from 2 *
devlian [24]

Answer:

Following are the program in c++

First code when using for loop

#include<iostream> // header file  

using namespace std; // namespace

int main() // main method

{

int n, i, sum1 = 0; // variable declaration

cout<<"Enter the number: "; // taking the value of n  

cin>>n;

if(n > 0) // check if n is nonnegative

{

for(i=n; i<=(2*n); i++)

{

sum1+= i;

}

}

else //  check if n  is negative

{

for(i=(2*n); i<=n; i++)

{

sum1+= i;

}

}

cout<<"The sum is:"<<sum1;

return 0;

Output

Enter the number: 1

The sum is:3

second code when using while loop

#include<iostream> // header file  

using namespace std; // namespace

int main() // main method

{

int n, i, sum1 = 0; // variable declaration

cout<<"Enter the number: "; // taking the value of n  

cin>>n;

if(n > 0) // check if n is nonnegative

{

int i=n;  

while(i<=(2*n))

{

sum1+= i;

i++;

}

}

else //  check if n  is negative

{

int i=n;  

while(i<=(2*n))

{

sum1+= i;

i++;

}

}

cout<<"The sum is:"<<sum1;

return 0;

}

Output

Enter the number: 1

The sum is:3

Explanation:

Here we making 2 program by using different loops but using same logic

Taking a user input in "n" variable.

if n is nonnegative then we iterate the loops  n to 2 * n and storing the sum in "sum1" variable.

Otherwise iterate a loop  2 * n to n and storing the sum in "sum1" variable.  Finally display  sum1 variable .

4 0
3 years ago
A department manager is planning a presentation on how data platforms work but needs to simplify the language for the audience t
ale4655 [162]

Answer:

gather, organize, and share data.

Explanation:

Presentation can be defined as an act of talking or speaking formally to an audience in order to explain an idea, piece of work, project, and product with the aid of multimedia resources or samples.

Basically, any speaker who wish to create an effective presentation should endeavor to interact frequently with the audience by holding a conversation.

In this scenario, a department manager is planning a presentation on how data platforms work but needs to simplify the language for the audience to better understand the main steps. Thus, the three steps which most accurately describe the manager's approach are;

I. Gather: the manager should acquire the necessary data for the presentation, from a reliable and credible source.

II. Organize: he or she should then proceed to sort out the data into segments or groups for better understanding.

III. Share data: the data gathered and organized should be disseminated to the audience.

7 0
3 years ago
Discuss the textbook's recommendations for improving business-IT communication. Provide examples from your own experience to sup
WINSTONCH [101]

Answer:

  1. Make the importance of effective communication
  2. Work with HR to develop new Skills  expectations and roles
  3. Making Oral Reports
  4. Using the Telephone
  5. Give Direction and Feedback

Explanation:

  1. Good communication skill is the most important skill for having a good relationship with business and that is why nowadays companies are making it must-have skill for every IT employee. They are also including it into performance appraisals so that way employees are giving it a topmost priority
  2. Companies are creating the jobs having titles such as "technology relationship manager", "IT Business Analyst" and "business technology specialist" where the titles suggest that the main focus of such titles is IT-Business relationship. One another way companies are trying to adopt is moving IT employees temporary for some time in business so that they can learn the business and enhance the relationship with them.
  3. You will need to make oral reports to other staff, such as the executive chef or restaurant manager. For example, you might have to report on the condition of some equipment or explain your actions regarding a problem with a restaurant supplier. You will also need to make oral reports to people who work under you, such as apprentices or salad preparation staff. For example, you might have to explain the preparation of a new menu item. An effective oral report has the same parts as an effective written report, namely an introduction, a body (or explanation), and a conclusion.
  4. Communicating on the telephone can be more difficult than speaking in person because many of the non-verbal cues are missing. When dealing with guests and other outsiders, it is particularly important to create a good first impression of your business. This first impression is created almost solely by your voice. For example, if you pick up the phone and bark “Yo” into the receiver, the caller is likely to be put off by your offhand manner and tone of voice. The caller may wonder whether he or she has reached the right number.
  5. A form of oral report that you will have to make if you supervise other people feedback on others’ performance. Feedback can be constructive or destructive. As these words imply, only constructive feedback serves any useful purpose. Take an example where the apprentice under your supervision is making pastries. Destructive feedback would be, “Are you stupid or something? The oven needs to be preheated before you put the pastries in to bake!” Do not use blaming words or indulge in name calling (“You are so…”). When people feel blamed, they often tune out of the discussion and do not hear your positive suggestions for improvement.

8 0
3 years ago
Janeen is concerned because the computer system did not upload the entries made the previous day.
BartSMP [9]
There are various possible reasons why the file that she is trying to upload is not uploading in her computer. FIrst maybe the internet connection is too slow or disconnected. Second, maybe the file is too big and lastly, the computer needs a restart 
4 0
4 years ago
Related to the State Process Model, what happens when an I/O event is triggered? a. The process moves from the state that is run
OLga [1]

Answer:

when the I/O event is triggered the related model process in (f) all of the above. because

Explanation:

there are five state process model which include;

1.New

2. Ready

3.Running

4. Blocked

5.Exit.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What did you include in your response? Check all that
    15·1 answer
  • (011001111)2=(?)10 can anyone solve this urgent <br><br> Hurry
    11·2 answers
  • Which command on the page layout ribbon enables a user to mark where a new page will begin on the printed copy?
    6·1 answer
  • How can artificial intelligence be used in learning science?
    6·1 answer
  • 1.  
    15·1 answer
  • To which type of domain does information on wikis belong?
    11·1 answer
  • Which validation method would you use for first name on a data form
    15·1 answer
  • You are working on a group project in which each member is required to collaborate on the write up the group wants to see what e
    5·1 answer
  • How does beamforming improve network service?
    14·1 answer
  • How do solar ovens track the sun as it moves during the day?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!