Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

if the variable score has a value of 10 at the beginning of a program, …

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?

Explanation:

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$

Answer:

$14.5$