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
Inessa [10]
2 years ago
12

On Edge; this assignment has been overdue for like three weeks because I DO NOT understand what to do, if you could help me that

would me AMAZING, thanks <3 (If you need a link I could post it)
Let’s get to debugging! The program you’re about to look at is supposed to be a simple game where the ninja has to rescue the good monsters (in blue) while avoiding being touched by the bad monsters (in red). The ninja receives points whenever a good monster is touched, and points are taken away whenever a bad monster is touched. You can use the up, down, left, and right arrows to make the ninja move toward the good monsters accordingly


Try playing the game and be observant about what isn’t happening the way you thought it would.

There are two bugs in the program. Your job is to identify the problem blocks of code and fix them. Use the following steps.

Identify the problem blocks. You will have to click on the different actors in the game to see their code.

Attempt to fix the problem code blocks. Check your fix by running the game again. Take screenshots of your code.

Describe the problem in the program and how you attempted to fix it, including whether you were successful.

Submit your screenshots and descriptions of how to fix the bugs.
Computers and Technology
2 answers:
STatiana [176]2 years ago
7 0

Answer:

There were several problems with the code:

- When pressing arrow left, the ninja was moving to the right.

- The ninja could be moved off the screen and then is lost

- When changing the direction, the ninja didn't change its appearance

Explanation:

See screenshot for changes. 10 was changed to -10, and I added checks to see if the ninja is at the edge of the screen.

anastassius [24]2 years ago
5 0

Answer:

you can give the other person brainly

Explanation:

You might be interested in
A function test() that would take three integervalues x, y and z (as
marta [7]

Answer: The c++ program to implement test() method is given below.

#include <iostream>

using namespace std;

int test(int a, int b, int c);

int main() {

   int x, y, z;

   cout<<"This program displays the largest number."<<endl;

       cout<<"Enter first number"<<endl;

       cin>>x;

       cout<<"Enter second number"<<endl;

       cin>>y;

       cout<<"Enter third number"<<endl;

       cin>>z;

   int max = test(x, y, z);

   cout<<"The largest number is "<<max<<endl;

   return 0;

}

int test(int a, int b, int c)

{

   if((a>b)&&(a>c))

       return a;

 

   else if((b>a)&&(b>c))

           return b;

           

   else if((c>b)&&(c>a))

           return c;

     

}

OUTPUT

This program displays the largest number.

Enter first number

12

Enter second number

0

Enter third number

-87

The largest number is 12

Explanation:

The method test() is declared as follows.

<em>int test(int a, int b, int c);</em>

The method is declared with return type int since it returns an integer, i.e., the largest of the three parameters.

This program is designed to accept 0 and all values of integers. Hence, input is not tested for validity. It is assumed that the user enters only numerical values.

The program declares and uses three integer variables to store the user input.

<em>int x, y, z;</em>

The method test() is designed to accept three integer parameters. This method is called once the user enters three numbers for comparison.

<em>int test(x, y, z);</em>

These numbers are compared in order to return the largest number.

No variable is used for comparison. The method simply compares the numbers using multiple if-else statements.

<em>if((a>b)&&(a>c))</em>

<em>        return a;</em>

The same comparison logic is applied for other two input values.

The largest number is returned to the calling function which is main() in this program. This value is stored in the integer variable, max, declared in the main() method. The variable max is declared and initialized simultaneously.

<em>int max = test(x, y, z);</em>

This value is then displayed on the screen.

<em>cout<<"The largest number is "<<max<<endl;</em>

4 0
3 years ago
How many pins are typical molex connector?
kondor19780726 [428]
There are 4 connectors, from left to right the pins are +5v ground ground +12v
5 0
3 years ago
Assume you have an integer pointer variable named intpoint2. It contains the address 1e6f24. You execute intpoint2++. What does
Serjik [45]

Answer:

c)1e6f28

Explanation:

The integer pointer intpoint2 points to the address 1e6f24.On increasing the inpoint.The intpoint will point to next location and since we know that the memory taken by integers is 4bytes.So the pointer will move to the next location 4 bytes ahead.

1e6f24+4=1e6f28.

Hence the answer is option c.

8 0
3 years ago
Distinguish between weighted codes and non weighted codes​
Gnom [1K]

Answer:

In weighted codes, each digit is a assigned a specific weight according to its position. NON- WEIGHTED CODE - The Non - Weighted Code are not positionally weighted. In other words, codes that are not assigned with any weight to each digit position. Hope it helpful U.

8 0
3 years ago
A _____________ is a situation in which a hacker attempts to disrupt the network by sending messages to the network that prevent
LUCKY_DIMON [66]
I think its a virus or a trojan horse
8 0
3 years ago
Other questions:
  • Can someone fix this so that it only says "its a payday" on 15 and 30 and on all other days "sorry, it's not payday"
    9·1 answer
  • he specific gravity of gold is 19.3. Write a MATLAB program that will ask the user to input the mass of a cube of solid gold in
    15·1 answer
  • My 2 in 1 laptop/tablet
    13·1 answer
  • Effective feedback should focus on the behavior, not the person.<br><br> True<br> False
    9·2 answers
  • The computer uses unallocated space for what​
    8·2 answers
  • Fair Use means a teacher can take the contents of a web activity page and repost it in your school's web site because it is for
    7·1 answer
  • a sign is to be hung from the end of a thin pole, and the pole supported by a single cable. your design firm brainstorms the six
    13·1 answer
  • Darren built a tower out of 23 toy blocks. each block has a mass of 7grams. what is the mass of the whole tower?​
    14·2 answers
  • The difference between Return key and word Wrap
    14·1 answer
  • Which of the following BEST describes a permissive software license?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!