subject
Engineering, 08.02.2022 01:00 dudedude4096

1 Write a program that calculates and prints the average of several integers. Assume the last value read with scanf is the sentinel 9999.

An example input sequence would be: 10 8 11 7 9 9999 Indicating that the average of all the values preceding 9999 is to be calculated.

2 Write a program that uses a for loop to calculate and print the sum of the even integers from 2 to 30.

Make sure you use meaningful variable names and that you add comments to your code.

You should submit your code and a sample of the input and output in a single pdf document.4

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:10
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
You know the right answer?
1 Write a program that calculates and prints the average of several integers. Assume the last valu...
Questions
question
English, 21.08.2020 19:01
question
Mathematics, 21.08.2020 19:01
question
Mathematics, 21.08.2020 19:01
Questions on the website: 13722367