2. Write the suitable snip code using for statement to display data after user key-in as in Figure 2. Figure 2: OUTPUT CONSOLE Key-in by User: Matrix[0][0]: 10 Matrix[0][0]: 100 Matrix[0][0]: 0 Matrix[0][0]: 70 Display after key-in: Element 1 = 10 Element 2 = 100 Only write code for this output Element 3 = 0 Element 4 = 70 Note: Assume the bold word in output console is key-in data by user and assume the array already written at the beginning of the code as shown below. int data [2] [2];

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 12VE
icon
Related questions
Question
2.
Write the suitable snip code using for statement to display data after user key-in as in Figure 2.
Figure 2: OUTPUT CONSOLE
Key-in by User:
Matrix[0][0]: 10
Matrix [0][0]: 100
Matrix [0][0]: 0
Matrix[0][0]: 70
Display after key-in:
Element 1 = 10
Only write code for this output
Element 2 = 100
Element 3 = 0
Element 4 = 70
Note: Assume the bold word in output console is key-in data by user and assume the array already written at the
beginning of the code as shown below.
int data [2] [2];
Transcribed Image Text:2. Write the suitable snip code using for statement to display data after user key-in as in Figure 2. Figure 2: OUTPUT CONSOLE Key-in by User: Matrix[0][0]: 10 Matrix [0][0]: 100 Matrix [0][0]: 0 Matrix[0][0]: 70 Display after key-in: Element 1 = 10 Only write code for this output Element 2 = 100 Element 3 = 0 Element 4 = 70 Note: Assume the bold word in output console is key-in data by user and assume the array already written at the beginning of the code as shown below. int data [2] [2];
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Functions
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
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning