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];
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];
Chapter3: Data Representation
Section: Chapter Questions
Problem 12VE
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];](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fda31d015-d53f-45d5-b89f-ceb248b6a8df%2Ff627bbe2-5a9f-4fd5-9661-335a8119f018%2Fov7m4ek_processed.png&w=3840&q=75)
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
![](/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.
Step by step
Solved in 3 steps with 2 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
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning