QUESTION IMAGE
Question
if the variable score has a value of 10 at the beginning of a program, which runs according to the following flowchart, what will the value of score be at the end?
Step1: Add 3 to score
$10 + 3=13$
Step2: Multiply score by 2
$13\times2 = 26$
Step3: Check if score > 20 (yes)
Skip the "no" - branch
Step4: Subtract 3 from score
$26- 3=23$
Step5: Check if score = 12 (no)
Skip the "yes" - branch
Step6: Divide score by 2
$23\div2 = 11.5$
Step7: Add 3 to score
$11.5+3=14.5$
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
$14.5$