Question: Exercise 1 - Calculations on 2 D array Exercise Objectives finding the sum, average, minimum, and maximum. Problem Description Inside Lab 8 folder, create

Exercise 1- Calculations on 2D array
Exercise Objectives
finding the sum, average, minimum, and maximum.
Problem Description
Inside "Lab8" folder, create a project named "Lab8Ex1". Use this project to write and run a C program that performs the following:
Creates an integer 44 two-dimensional array named temperature (which represents the weather temperature values for 4 days in 4 different periods of time)
Fills the array with the temperature values entered by the user, where the user enters for each day 4 temperatures.
Prints the array elements in a tabular format as follows (assuming that the user enters the shown values):
\table[[,#1,#2,#3,#4],[Day 1,11,19,20,14],[Day 2,13,20,21,14],[Day 3,15,21,22,16],[Day 4,24,19,17,13],[,,,,]]
Computes and prints the minimum temperature of each column.
Computes the average of the first 2 columns (#1 and #2) and compares them with the average of the second half of the array (columns #3 and #4). Print the largest average.
Prints the max temperature of day 1.
Exercise 1 - Calculations on 2 D array Exercise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!