subject
Engineering, 08.11.2019 22:31 kelly3215

Write a program to define two arrays: a and b. each array is of size 3 x 3. fill array a as follow: a 0 1 2 3 4 5 6 7 8 read array b from the user and calculate the sum of every row in both arrays a and b. for example, if the user enters b as: 2 3 1 5 6 3 9 8 0 the output will be: the sum of row 1 in a and b = 0+1+2+2+3+1= 9 the sum of row 2 in a and b = 3+4+5+5+6+3= 26 the sum of row 3 in a and b = 6+7+8+9+8+0= 38

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 18:20
Atank with constant volume contains 2.27 kg of a mixture of water phases (liquid-vapor). in the initial state the temperature and the quality are 127 °c and 0.6, respectively. the mixture is heated until the temperature of 160 oc is reached. illustrate the process in a t-v diagram. then, determine (1) the mass of the vapor in kg at the initial state, (2) the final pressure in kpa.
Answers: 3
question
Engineering, 04.07.2019 19:10
Agas contained within a piston-cylinder assembly e end nation about same energy states, 1 and 2, where pi 10 bar, v undergoes two processes, a and b, between the sam 0.1 m3, ui-400 kj and p2 1 bar, v2 1.0 m2, u2 200 kj: process a: process from 1 to 2 during which the pressure- volume relation is pv constant process b: constant-volume process from state 1 to a pressure of 2 bar, followed by a linear pressure-volume process to +20 0 state 2 kinetic and potential energy effects can be ignored. for each of the processes a and b, (a) sketch the process on p-v coordinates, (b) evaluate the work, in kj, and (c) evaluate process the heat transfer, in kj
Answers: 2
question
Engineering, 04.07.2019 19:20
Determine (a) the maximum thermal efficiency of reversible power cycles operating between a hot reservoir at 1000°c and a cold reservoir at 200°c and (b) the maximum cops for reversible refrigeration and heat pump cycies, respectively, between 28°c and 14°c.
Answers: 1
You know the right answer?
Write a program to define two arrays: a and b. each array is of size 3 x 3. fill array a as follow:...
Questions
question
Mathematics, 10.10.2019 13:00
Questions on the website: 13722359