subject

Can someone tell me if this pseudocode for a case statement makes sense? ^^;

target num ← 3 case target num of
1: score ← score + 20
2: score ← score + 10
3: score ← score + 30
output score
end case

im trying to set 3 different targets and change the score by those values for each target that a ball collides with just wanted to know if i did something wrong or im using this case statement the wrong way ^^;

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
Can someone tell me if this pseudocode for a case statement makes sense? ^^;

target num...
Questions
question
Mathematics, 26.08.2019 21:30
question
Mathematics, 26.08.2019 21:30
question
Mathematics, 26.08.2019 21:30
question
Social Studies, 26.08.2019 21:30