subject
Engineering, 25.10.2019 18:43 KadaLearns

Start from scratch on each of the parts. write a main function that declares an array of 100 doubles. in a for loop, assign each of the doubles a random number between 0.50 and 50.00. here’s how. array[i] = (double) (rand() % 100 + 1) / 2.0; output the elements of the array in 10 columns that are each 6 spaces wide. each row in the output will have 10 values. the doubles will be printed with 2 places of accuracy past the decimal. the output of this one-dimensional array requires a single loop with an if statement inside. even though the 100 numbers are going to be presented as a table of numbers, they are still just a list in memory

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
You know the right answer?
Start from scratch on each of the parts. write a main function that declares an array of 100 doubles...
Questions
question
Chemistry, 03.12.2019 17:31
question
Mathematics, 03.12.2019 17:31
question
Mathematics, 03.12.2019 17:31
question
Mathematics, 03.12.2019 17:31
Questions on the website: 13722367