Menu

[Solved] C Program 2d Array Write Program Assigns Data Given 2d Array Integers 10×10 Prints Content Q37299894

C++ Program

2D Array

Write a program which:

  1. Assigns data given below into the 2D array of integers which is10x10
  2. Prints out the contents of the 2D array after assigning thedata to make sure correct data was assigned.
  3. Figures out and prints out the square root of the sum ofALL the elements in the 2D array.
  4. Figures out and prints out the average of ALL THEELEMENTS in the 2D array.
  5. Figures out and prints out the square root of the sum of thevalues of the elements of EACH ROW in the 2Darray.
  6. Figures out and prints the average of EACHCOLUMN in the 2D array.
  7. Figures out and prints out the square root of the sum of thevalues on the diagonal from upper left hand corner tobottom right hand corner.
  8. Figures out and prints out the average of the values on thediagonal from upper right hand corner to bottom left handcorner.

To make assigning the 100 values easy we will test withthe following data:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

Expert Answer


Answer to C++ Program 2D Array Write a program which: Assigns data given below into the 2D array of integers which is 10×10 Prints… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *