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
Strands of materials A and B are placed under a tensile force of 10 Newtons. Material A deforms more than Material B.
nadezda [96]

Answer:

True

Explanation:

6 0
2 years ago
Read 2 more answers
Some of our modern kitchen cookware is made of ceramic materials. (a) List at least three important characteristics required of
Alisiya [41]

Answer:

A)

It should be Non- toxic

It should possess high Thermal conductivity

It should have the Required Thermal diffusivity

B)

  • stoneware : This material has good thermal diffusivity and it  is quite affordable and it is used in making pizza stones
  • porcelain: mostly used for mugs and it is non-toxic
  • Pyrex : posses good thermal conductivity used in oven

C)   All the materials are suitable because they serve different purposes when making modern kitchen cookware

Explanation:

A) characteristics required of a ceramic material to be used as a kitchen cookware

  • It should be Non- toxic
  • It should possess high Thermal conductivity
  • It should have the Required Thermal diffusivity

B) comparison of three ceramic materials as to their relative properties

  • stoneware : This material has good thermal diffusivity and it  is quite affordable and it is used in making pizza stones
  • porcelain: mostly used for mugs and it is non-toxic
  • Pyrex : posses good thermal conductivity used in ovens

C) material most suitable for the cookware.

 All the materials are suitable because they serve different purposes when making modern kitchen cookware

8 0
2 years ago
Which of the following requirement statements is an example of a breakdown of the accuracy standard?
const2013 [10]

Answer:

<u>The automobile rental prices shall show all taxes (including a 6% state tax).</u>

Explanation:

Im pretty sure

4 0
2 years ago
To compute the energy used by a motor, multiply the power that it draws by the time of operation. Con- sider a motor that draws
ehidna [41]

Answer:

E=52000Hp.h

E=38724920Wh

E=1.028x10^11 ftlb

Explanation:

To solve this problem you must multiply the engine power by the time factor expressed in h / year, to find this value you must perform the conventional unit conversion procedure.

Finally, when you have the result Hp h / year you convert it to Ftlb and Wh

E=(12.5hp)(\frac{16h}{day} )(\frac{5 days}{week} )(\frac{52week}{year} )\\

E=52000Hp.h

E=52000Hp.h(\frac{744.71Wh}{Hp.h} )\\

E=38724920Wh

E=52000Hph(\frac{1977378.4  ft lb}{1Hph}

E=1.028x10^11 ftlb

3 0
3 years ago
What would be the structure for the body points for a persuasive presentation?.
Nataliya [291]
A persuasive speech is structured like an informative speech. It has an introduction with an attention-getter and a clear thesis statement. It also has a body where the speaker presents their main points and it ends with a conclusion that sums up the main point of the speech.
5 0
2 years ago
Other questions:
  • A bar having a length of 5 in. and cross-sectional area of 0. 7 in.2 is subjected to an axial force of 8000 lb. If the bar stret
    9·1 answer
  • A system consists of N very weakly interacting particles at a temperature T sufficiently high so that classical statistical mech
    9·1 answer
  • 1. The area of the given triangle is 25 square units. What is the value of x?<br> X+2
    8·1 answer
  • What was the purpose of the vasa ship
    11·1 answer
  • Which statement concerning symbols used on plans is true?
    10·1 answer
  • What energy type is represented in the picture?
    6·2 answers
  • Describe in your own words the three strengthening mechanisms
    7·1 answer
  • How does the Ivanpah Solar Plant make electricity?
    12·1 answer
  • 1 A power transmission includes a belt drive, a chain drive and a gear drive. Which of the following is the best arrangement bet
    5·1 answer
  • Technician A says that synthetic blend oil has the same service life as that of full synthetic oils. Technician B says that conv
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!