This code segment read the elements for the array M(10) using input box, then calculate the product (the result of multiplying) of elements greater than the number 5. Then print the final result of the multiplication. 1-............ For I 1 To 10 M(I) = InputBox("M") 2-... 3-.. 5-... 6-.. 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4- Next 5- End If 6-Print P 1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Print P 6-Next 1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P O O

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
icon
Related questions
Question
i need the answer quickly
This code segment read the
elements for the array M(10) using
input box, then calculate the product
(the result of multiplying) of
elements greater than the number 5.
Then print the final result of the
multiplication.
1-..
For I 1 To 10
M(I) = InputBox("M")
2-..
3-............
4-.
5-..
6-..........
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4-
Next 5- End If 6-Print P
1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End
If 5-Print P 6-Next
1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End
If 5-Next 6-Print P
Transcribed Image Text:This code segment read the elements for the array M(10) using input box, then calculate the product (the result of multiplying) of elements greater than the number 5. Then print the final result of the multiplication. 1-.. For I 1 To 10 M(I) = InputBox("M") 2-.. 3-............ 4-. 5-.. 6-.......... 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(1) 4- Next 5- End If 6-Print P 1-P = 0 2-1f M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P 1-P = 1 2-lf M(I) > 5 Then 3-P = P * M(I) 4-End If 5-Print P 6-Next 1-P = 1 2-lf M(I) <=5 Then 3-P = P * M(I) 4-End If 5-Next 6-Print P
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Array
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage