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 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
You know the right answer?
Can someone tell me if this pseudocode for a case statement makes sense? ^^;

target num...
Questions
Questions on the website: 13722360