subject

Julie is writing a computer game that simulates a 100 m race. Each time the space bar is pressed, the position of the player moves up by 1. When the position reaches 100, the player has won.
Here is Julie's algorithm for the program

CONST PlayerKey = ""
Position = 0
REPEAT
INPUT KeyPressed
If KeyPressed = PlayerKey THEN
Position = Position + 1
END IF
UNTIL Position = 100

State what is meant by selection and iteration using examples from Julie's algorithm.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:40
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
question
Computers and Technology, 23.06.2019 12:30
Animations and transitions are added from the
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
You know the right answer?
Julie is writing a computer game that simulates a 100 m race. Each time the space bar is pressed, t...
Questions