Ask Question
24 August, 08:25

The variable 'a' starts with the value 1 The variable 'b' starts with the value 10 The variable 'c' starts with the value 100 The variable 'x' starts with the value 0 Store the value of 'c' times 3 in 'x' Add the value of 'b' times 6 to the value already in 'x' Add the value of 'a' time 5 to the value already in 'x' Display the value of 'x' on the screen.

a. 355

b. 365

c. 325

d. 370

+5
Answers (1)
  1. 24 August, 08:30
    0
    The answer is B = 365

    Explanation:

    The following variable were initialized:

    a = 1

    b = 10

    c = 100

    x = 0

    Then we store the value of 'c' times 3 in 'x'

    x = 3 * c = 3 * 100 = 300

    x = 300

    Then we add the value of 'b' times 6 to the value already in 'x'

    x = x + 'b' times 6

    x = x + (b * 6) = 300 + (10 * 6) = 300 + 60 = 360

    x = 360

    Then we add the value of 'a' times 5 to the value already in 'x'

    x = x + 'a' times 5

    x = x + (a * 5) = 360 + (1 * 5) = 360 + 5 = 365

    x = 365.

    Therefore, the value of 'x' displayed is 365.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “The variable 'a' starts with the value 1 The variable 'b' starts with the value 10 The variable 'c' starts with the value 100 The variable ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers