Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C 1) 2D Array generation: Use a random number generator to generate nxn 2D Array of Integers within the range (0,9]. 2) Array Display:

image text in transcribed

Using C 1) 2D Array generation: Use a random number generator to generate nxn 2D Array of Integers within the range (0,9]. 2) Array Display: Display the array in 2D format 3) Mean, Sum and Standard Deviation : Calculate and display(up to 2 decimal places) the Sum of all the elements in the array and the Mean of the array and the standard deviation. Standard Deviation is defined as Sample Output for Part 2 (single trial): 13945 23421 69212 23411 23739 The Sum is = 89 The Mean is = 3.56 Upper Triangle m sd = (x - 72 13945 03421 00212 00011 00009 The Sum is = 48 The Mean is = 1.92 i=1 Lower Triangle Where'sd' is the standard deviation for the 2D array, xidenotes all the elements of the array, x is the mean of the 2D array and m is the total number of elements [m = n xn] . [Note that the above definition returns a scalar value] 4) Compute the number of points that are above average value and display your results [Attach (in the report) the code and screenshots of the output for n=5 and n=10. For Question 1, the outputs of parts 1,2,3,4 should be in a single screenshot, similarly code for parts 1,2,3,4 should be in a single c file] 5) Upper Triangle : Display the Upper Triangle of the above 5x5 2D Array along with its Sum and the Mean. 6) Lower Triangle : Display the Lower Triangle of the above 5x5 2D Array along with its Sum and the Mean. 7) Symmetric: Use the obtained Lower Triangle matrix to generate a Symmetric matric. [The Lower Triangle of the obtained Symmetric Array should be same as the result of 6] [Attach (in the report) the code and screenshots of the output. For Question 1, the outputs of parts 5,6,7 should be in a single screenshot, similarly code for parts 5,6,7 should be in a single c file] 10000 23000 69200 23410 23739 The Sum is = 57 The Mean is = 2.28 Symmetric 12622 23233 69247 23413 23739 The Sum is = 91 The Mean is = 3.64

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

Step: 3

blur-text-image

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

What is Working Capital ? Explain its types.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago