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
-BARSIC- [3]
3 years ago
11

Let's get into some looping. Sometimes it is nice to generate your own data. Now let's take our first stab at it.

Computers and Technology
1 answer:
valkas [14]3 years ago
3 0

Answer:

55

Explanation:

You might be interested in
The monkey-and-bananas problem is faced by a monkey in a laboratory with some bananas hanging out of reach from the ceiling. A b
elixir [45]

Answer:

a) <u>initial state description</u>

<em>At(Monkey, A) ∧ At(Bananas, B) ∧ At(Box, C) ∧</em>

<em>Height(Monkey, Low) ∧ Height (Box, Low) ∧</em>

<em>Height (Bananas, High) ∧ Push(Box) ∧ ClimbUp(Box)</em>

b)  <u>the six action schemas.</u>

1 - Go from one place to another

<em>Action (Go(x, y),</em>

<em>PRECONDITION: At (Monkey, x)</em>

<em>EFFECT: At (Monkey, y) ∧¬At(Monkey, x))</em>

2 - Push an object from one place to another

<em>Action (Push(b, x, y),</em>

<em>PRECONDITION: At (Monkey, x) ∧ Can Push(b)</em>

<em>EFFECT: At(b, y) ∧ At (Monkey, y) ∧¬At(b, x) ∧¬At(Monkey, x))</em>

3 - Climb up unto an object

<em>Action (ClimbUp(b),</em>

<em>PRECONDITION: At(b, x) ∧ At(Monkey, x) ∧ ClimbUp(b)</em>

<em>EFFECT: On (Monkey, b) ∧¬Height (Monkey, High))</em>

4 - ClimbDown from an object

<em>Action (ClimbDown (b),</em>

<em>PRECONDITION: On (Monkey, b) ∧ Height (Monkey, High)</em>

<em>EFFECT: ¬On (Monkey, b) ∧¬Height (Monkey, High) ∧ Height(Monkey, Low))</em>

5 - Grasp an object

<em>Action (Grasp (object, position, height),</em>

<em>PRECONDITION: Height(Monkey, h) ∧ Height(b, h) ∧ At(Monkey, x) ∧ At(b, x)</em>

<em>EFFECT: Has(Monkey, b))</em>

6 - Ungrasp an object

<em>Action (Ungrasp(b),</em>

<em>PRECONDITION: Have(Monkey, b)</em>

<em>EFFECT: Has(Monkey, object))</em>

<em />

c) <u>general goal state.</u>

<em>Has(Monkey, Bananas, s) ∧ (ЗхAt(Box, x, s₁) ∧ At(Box, x, s))</em>

STRIPS only consider about goal state, there is no relation between two states within the plan, so there is no way to represent this goal.

6 0
3 years ago
When do you use a for loop instead of a while loop? (There may be more than one answer.)
statuscvo [17]

Answer:

- You know how many times you want the loop to run.

- When there is a defined start and end.

Explanation:

Required:

When to use for instead of while loop?

First, it should be noted that both for loop and while loop are used for iteration. However, depending on the scenario; there is preference on one to the other.

The basic syntax of for loop is:

for(start;end;condition)\{\}

<em>The condition could either be increment or decrement</em>

The basic syntax of while loop is:

while(condition)\{\}

<em>The condition could be any condition whatsoever</em>

Analyzing the options one after the other.

1. How many times the loop to run.

The for loop is preferred here because of the simplicity of the for loop.

2. & 3. Both the for and while loops are used for code repetition and to perform number calculations

4. Defined start and end.

From the syntax of the for loop

for(start;end;condition)\{\}

<em />

A for loop has a definite start and end in its basic syntax and is more preferable to use instead of a while loop.

<em />

<em />

Hence, 1 & 4 answer the question

8 0
2 years ago
When should you talk to an adult you trust
Gnesinka [82]

Answer:

you should talk to them when u think its the right time and you think u can trust them

5 0
3 years ago
If I make a Zoom Meeting, would you join it?
boyakko [2]

Most likely, yeah lol.

3 0
3 years ago
Read 2 more answers
Why do we need the system requirements for Adobe photoshop?
babymother [125]
I’m sorry and I do not know I just need credits thank have a nice day
7 0
3 years ago
Other questions:
  • While using the CLI on a Windows 10 64-bit computer with a single HDD and a single volume, you want to move from the current dir
    15·1 answer
  • Describe how asymmetric encryption is used to send a message from User A to User B that assures data confidentiality, authentica
    9·1 answer
  • Does white space have visual weight? Yes or No
    7·2 answers
  • What is the meaning of the term plot?<br>A. the final outcome of the story​
    8·1 answer
  • Plz help fast! will mark brainliest!<br><br>List three ways that music is used in modern society.
    6·1 answer
  • Does anyone know what i did wrong?
    13·1 answer
  • Write a one page report describing the computer the client used, who else had access to it and other relevant findings. Referenc
    7·1 answer
  • What are five types of applications you can create in Visual Basic 2017?
    12·2 answers
  • The chain of _____ documents that the evidence was under strict control at all times and no unauthorized person was given the op
    13·1 answer
  • Which of the following is a mathematical function defined in the sql standard?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!