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 19:30
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
You know the right answer?
1 Write a program that calculates and prints the average of several integers. Assume the last valu...
Questions
question
Mathematics, 28.06.2021 18:40
question
Mathematics, 28.06.2021 18:40