There are a lot of ways to code in Scratch. What should be done to fix the error is to Change "move 20 steps" to "move 10 steps"
<h3>What is Movement in gaming?</h3>
Movement is known to be a basic function in any kind of game. It is known to be the first thing one has to do when a person start a new game, and it can be found in almost all of every game that is made in Scratch.
The movement in games is done by pressing the arrow keys, which tells player's characters to move around on the screen and achieve a given task.
Learn more about coding from
brainly.com/question/22654163
Answer:
Option C. Security+ is the correct answer.
Explanation:
Video games and currency premium playing
Answer:
#include <stdio.h>
#include <string.h>
void main( )
{
array flowerProp[2];
FILE *fp; // file pointer
char flower[255]; // creating a char array to store data
fp = fopen("flowers.dat","r");
if (fp == NULL){
printf("File flower.dat does not exist");
return;
}
// assuming the growing condition is next line to the flower name.
while(fscanf(fp, "%s", flower)!=EOF){
flowerProp.push(flower);
if (flowerProp.length == 2){
printf("%s: %s\n ", flowerProp[0], flowerProp[1]);
memset(flowerProp, 0,0);
}
}
fclose (fp );
}
Explanation:
The algorithm creates a pointer to the memory location to the file starting position, the character size is used to get a string from the file line by line. Then it opens and checks if the file exists.
If the file exists, the while gets the name and growth condition of the flower, saves it to an array, prints the name and condition, and clears the array for the next flower type in the loop.