Computers and Technology

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 ^^;

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, andyromero
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
image
Computers and Technology, 22.06.2019 20:00, jc624826
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, zay179
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, ranmmm
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
Do you know the correct answer?
Can someone tell me if this pseudocode for a case statement makes sense? ^^;

target num...

Questions in other subjects:

Konu
Mathematics, 04.03.2020 04:53