subject
Engineering, 19.11.2019 17:31 chey1603

Write a c++ program that asks the user to type a positive integer. when the user types a negative value the program writes negative and asks for another value. when the user types 0 that means that the last value has been typed and the program must write the average of the positive integers. if the number of typed values is zero the program writes 'nil average'.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
Answers: 2
question
Engineering, 06.07.2019 03:30
Abrayton cycle operates with a regenerator on the air-standard with properties evaluated at 400 k. the tem- perature of the air entering the compressor is 350k while the temperature of the air exiting the compressor is 600 k. the temperature of the air entering the turbine is 1600 k. the overall cycle produced 600 kj/kg of net work out. assuming a regenerator effectiveness of 0.8, what is the temperature of the air before heat addition (combustion)? draw this process on a t - s diagram
Answers: 3
You know the right answer?
Write a c++ program that asks the user to type a positive integer. when the user types a negative va...
Questions
question
Mathematics, 21.05.2020 03:02
Questions on the website: 13722359