Engineering
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

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, heidiburgos1own6c0
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:10, kevin72836
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
image
Engineering, 04.07.2019 18:10, katelynn73
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
image
Engineering, 04.07.2019 19:20, zoebtharpe
Heat transfer by is the fastest mode of heat transfer that requires no intervening medium. a)-conduction b)-convection c)-radiation d)-conduction and convection
Answers: 1
Do you know the correct answer?
1 Write a program that calculates and prints the average of several integers. Assume the last valu...

Questions in other subjects:

Konu
Physics, 25.10.2021 02:40
Konu
Mathematics, 25.10.2021 02:40
Konu
Health, 25.10.2021 02:40
Konu
English, 25.10.2021 02:40