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, 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
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 18:20
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
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, 18.12.2019 19:31
question
Chemistry, 18.12.2019 19:31
Questions on the website: 13722367