1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Arlecino [84]
3 years ago
6

Write analgorithm and a C code to calculate the sum and average value of an array12elements.For example: Array_Temperaure=[10, 1

2, 13, 15, 20, 23, 25, 25, 25, 16, 13, 10}

Engineering
1 answer:
Lerok [7]3 years ago
4 0

Answer:

The solution of this code is given below in explanation section.

Explanation:

The C code of this problem is given below

/*******************************************************************************/

#include <stdio.h>

int main()

{

   int n=12, i;//n show the elements in array, while i will be used in for loop

   float Array_Temperaure[]={10, 12, 13, 15, 20, 23, 25, 25, 25, 16, 13, 10};//Array_Temperaure declared and initialized  

   float sum = 0.0;// sum variable declared and initialized

   float avg;// avg average variable declared and initialized

   

   for (i = 0; i < 12; ++i) //for loop to iterate through elements in Array_Temperaure.

   {  

       

       sum += Array_Temperaure[i];// in sum vaiable, Array_Temperaure numbers are added

   }

   avg = sum / n;// average is calculated

   printf("Sum = %.2f", sum);// sum is shown

   printf("\nAverage = %.2f", avg);// average is desplayed.

   return 0;

}

/*************************************************************** algorithm******************/

declare array Array_Temperaure[12];

declare int variable n ,i;

declare float variable sum and average;

for loop

          To iterate n time

                    sum the number of array at current index into total sum

calculate average;

display sum;

display average;

terminate the program;

You might be interested in
Problem 2. The length of a side of the square block is 4 in. Under the application of the load V, the top edge of the block disp
White raven [17]

Answer and Explanation:

The answer is attached below

8 0
3 years ago
The velocity profile for a thin film of a Newtonian fluid that is confined between the plate and a fixed surface is defined by u
zimovet [89]

Answer:

F = 0.0022N

Explanation:

Given:

Surface area (A) = 4,000mm² = 0.004m²

Viscosity = µ = 0.55 N.s/m²

u = (5y-0.5y²) mm/s

Assume y = 4

Computation:

F/A = µ(du/dy)

F = µA(du/dy)

F = µA[(d/dy)(5y-0.5y²)]

F = (0.55)(0.004)[(5-1(4))]

F = 0.0022N

8 0
2 years ago
A hot brass plate is having its upper surface cooled by impinging jet of air at temperature of 15°C and convection heat transfer
gulaghasi [49]

Answer:

809.98°C

Explanation:

STEP ONE: The first step to take in order to solve this particular Question or problem is to find or determine the Biot value.

Biot value = (heat transfer coefficient × length) ÷ thermal conductivity.

Biot value = (220 × 0.1)÷ 110 = 0.2.

Biot value = 0.2.

STEP TWO: Determine the Fourier number. Since the Biot value is greater than 0.1. Tis can be done by making use of the formula below;

Fourier number = thermal diffusivity × time ÷ (length)^2.

Fourier number = (3 × 60 × 33.9 × 10^-6)/( 0.1)^2 = 0.6102.

STEP THREE: This is the last step for the question, here we will be calculating the temperature of the center plane of the brass plate after 3 minutes.

Thus, the temperature of the center plane of the brass plane after 3 minutes = (1.00705) (0.89199) (900- 15) + 15.

= > the temperature of the center plane of the brass plane after 3 minutes = 809.98°C.

5 0
2 years ago
Salvage ethnography is the effort to ensure that ethnography remains an important part of anthropology. recording of linguistic
fenix001 [56]

Answer:

                D

Explanation:

                            D

6 0
3 years ago
A building wall has dimensions of 3 m tall and 10 m wide. It is constructed of 2 cm. wallboard (k = 0.5 W/m-C) on the inside, 3
Art [367]

Answer: heat loss through wall is 16.58034kW

Temperature of inside wall surface is 47°c

Temperature of outside wall surface is -2.7°c

Explanation:detailed calculation and explanation is shown in the image below.

4 0
3 years ago
Other questions:
  • What is a p-n junction? Show by the diagram.
    6·1 answer
  • What is the first step in the problem-solving process, as well as in the engineering design process?
    7·1 answer
  • A DOHC V-6 has how many camshafts?
    6·1 answer
  • A chemistry student accidentally drops a large mercury thermometer and it breaks. The thermometer contained 2 grams of mercury (
    13·1 answer
  • Steam flows steadily through an adiabatic turbine. The inlet conditions of the steam are 10 MPa, 450°C, and 80 m/s, and the exit
    11·1 answer
  • Consider a drainage basin having 60% soil group A and 40% soil group B. Five years ago the land use pattern in the basin was ½ w
    12·1 answer
  • is sampled at a rate of to produce the sampled vector and then quantized. Assume, as usual, the minimum voltage of the dynamic r
    9·1 answer
  • 3. (20 points) Suppose we wish to search a linked list of length n, where each element contains a key k along with a hash value
    7·1 answer
  • Describe how a cavity wall works and sketch its major construction features. What aspects of cavity wall construction are most c
    5·1 answer
  • An interrupted line of sight means changes in ......and .... are necessary for re-establishing a ......... to the driver’s path
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!