Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

id:317431 2. Write a program to create a 1D array of 9 elements using your student ID, if your student ID is 6 digits, then

id:317431
image text in transcribed
2. Write a program to create a 1D array of 9 elements using your student ID, if your student ID is 6 digits, then first 6 elements of array will be individual digits of your student id and repeat the rest from beginning, until the number of elements become 9. For example if your student id is 123456 then Array = [1, 2, 3, 4, 5, 6, 1, 2, 3] or if your student id is X12345 then Array = [1, 2, 3, 4, 5, 1, 2, 3, 4] (: 8) 3. Convert above 2D array of 9 elements in to ( 3X3) 2D array named A. Now find out the square of the matrix i.e. A*A. (: 8)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions