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
In a creep test, increasing the temperature will (choose the best answer) A. increase the instantaneous initial deformation B. i
Hitman42 [59]

Answer:

All of the above

Explanation:

firstly, a creep can be explained as the gradual deformation of a material over a time period. This occurs at a fixed load with the temperature the same or more than the recrystallization temperature.

Once the material gets loaded, the instantaneous creep would start off and it is close to electric strain. in the primary creep area, the rate of the strain falls as the material hardens. in the secondary area, a balance between the hardening and recrystallization occurs. The material would get to be fractured hen recrstallization happens.  As temperature is raised the recrystallization gets to be more.

8 0
2 years ago
Solar energy stored in large bodies of water, called solar ponds, is being used to generate electricity. If such a solar power p
fgiga [73]

Answer: 1.137*10^7 Btu/h.

Explanation:

Given data:

Efficiency of the plant = 4.5percent

Net power output of the plant = 150kw

Solution:

The required collection rate

QH = W/n

= 150/0.045 * 0.94782/ 1 /60 */60 Btu/h.

= 3333.333 *3412.152Btu/h.

= 11373840 Btu/h

= 1.137*10^7 Btu/h.

3 0
3 years ago
- Viscoelastic stress relaxation
My name is Ann [436]

Explanation:

The correct answers to the fill in the blanks would be;

1. Viscoelastic stress relaxation refers to scenarios for which the stress applied to a polymer must decay over time in order to maintain a constant strain. Otherwise, over time, the polymer chains will slip and slide past one another in response to a constant applied load and the strain will increase (in magnitude).

2. Viscoelastic creep refers to scenarios for which a polymer will permanently flow over time in response a constant applied stress.

The polymer whose properties have been mentioned above is commonly known as Kevlar.

It is mostly used in high-strength fabrics and its properties are because of several hydrogen bonds between polymer molecules.

5 0
3 years ago
If i eat myself will I get twice as big or disappear completely?
Butoxors [25]
Disappear completely
5 0
3 years ago
Which of the following types of protective equipment protects workers who are passing by from stray sparks or metal while anothe
lawyer [7]

A protective equipment which protects workers who are passing by from stray sparks or metal while another worker is welding is: E. Welding Screens.

A wielder refers to an individual who is saddled with responsibility of joining two or more metals together by wielding.

During the process of wielding, sparks and minute metallic objects are produced, which are usually hazardous to both the wielder and other workers within the vicinity.

Hence, the following protective equipment are meant to be worn or used directly by a wielder (worker) who is wielding:

  • Visors.
  • Goggles.
  • Protective clothing.
  • Dark walls.

However, a protective equipment which protects other workers who are passing by from stray sparks or metallic objects while wielder (worker) is welding is referred to as welding screens.

Find more information: brainly.com/question/15442363

4 0
3 years ago
Other questions:
  • What is the zone that has just been added to the exchange zone where athletes may now hand off the baton
    5·1 answer
  • A cylindrical bar of steel 10.1 mm (0.3976 in.) in diameter is to be deformed elastically by application of a force along the ba
    15·1 answer
  • A heavy ball with a weight of 110 N is hung from the ceiling of a lecture hall on a 4.9-m-long rope. The ball is pulled to one s
    6·1 answer
  • A mercury thermometer has a cylindrical capillary tube with an internal diameter of 0.2 mm. If the volume of the thermometer and
    10·1 answer
  • A rigid tank contains 5 kg of saturated vapor steam at 100°C. The steam is cooled to the ambient temperature of 25°C. (a) Sketch
    5·1 answer
  • An engineer is trying to build a new measurement tool. Which step should the engineer complete first? A. Design a model of the t
    8·1 answer
  • The coefficient of performance of a reversible refrigeration cycle is always (a) greater than, (b) less than, (c) equal to the c
    12·1 answer
  • A compressor receives air at 290 K, 95 kPa and shaft work of 5.5 kW from a gasoline engine. It should deliver a mass flow rate o
    7·1 answer
  • Trapezoidal screw press project
    6·1 answer
  • Explain the problems and their possible solution for electricity problems ?​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!