Study the following array called numArr. Indicate what the values in numArr would be after the given code has been executed. 1.1 4 8 10 120 14 15 99 102 55 for x = 0 to 9 if numArr (x) Mod 2 = 0 then numArr (x) = numArr (x) + 5 endif if x Mod 2 = 0 then numArr (x) = numArr (x) + 1 endif next x x = x - 5 numArr (x) 10 for y = 2 to 8 step 2 %3D numArr (y) = numArr (x) + y next y for z = 1 to 6 step 3 numArr (z) - z * y + x next z numArr (x) = numArr (z)
Study the following array called numArr. Indicate what the values in numArr would be after the given code has been executed. 1.1 4 8 10 120 14 15 99 102 55 for x = 0 to 9 if numArr (x) Mod 2 = 0 then numArr (x) = numArr (x) + 5 endif if x Mod 2 = 0 then numArr (x) = numArr (x) + 1 endif next x x = x - 5 numArr (x) 10 for y = 2 to 8 step 2 %3D numArr (y) = numArr (x) + y next y for z = 1 to 6 step 3 numArr (z) - z * y + x next z numArr (x) = numArr (z)
Chapter8: Arrays
Section: Chapter Questions
Problem 2RQ
Related questions
Question
pseodocode / c++
![Study the following array called numArr. Indicate what the values in numArr Would
be after the given code has been executed.
1.1
4
8
10
120
14
15
99
102
55
for x = 0 to 9
if numArr (x) Mod 2 = 0 then
numArr (x)
= numArr (x) + 5
endif
if x Mod 2 = 0 then
numArr (x)
= numArr (x) + 1
endif
next x x = x - 5 numArr (x)
10 for y = 2 to 8 step 2
numArr (y)
= numArr (x) + y next
for z = 1 to 6 step 3
numArr (z)
*
y + x
next z
numArr (x)
= numArr (z)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6d6ac471-6557-492d-aea2-9dab3cc4e91c%2Fe1b7abac-219e-4ddf-82a7-bcd7ac62b962%2Fb7nlp4i_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Study the following array called numArr. Indicate what the values in numArr Would
be after the given code has been executed.
1.1
4
8
10
120
14
15
99
102
55
for x = 0 to 9
if numArr (x) Mod 2 = 0 then
numArr (x)
= numArr (x) + 5
endif
if x Mod 2 = 0 then
numArr (x)
= numArr (x) + 1
endif
next x x = x - 5 numArr (x)
10 for y = 2 to 8 step 2
numArr (y)
= numArr (x) + y next
for z = 1 to 6 step 3
numArr (z)
*
y + x
next z
numArr (x)
= numArr (z)
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning