Engineering
Engineering, 13.03.2020 18:25, 20heldmadison

The following script will delete an element of desired location from an array. First, run the following script then put comments in the script that will explain how the deletion and the adjustment on the array takes place. #include int main() { int a[50],i, pos, size; printf("\nEnter size of the array: "); scanf("%d",& size); printf("\nEnter %d elements in to the array:", size); for(i = 0; i < size; i++) scanf("%d",&ali); printf("\nEnter position where to delete: "); scanf("%d",&pos); i = 0; while(i != pos-1) i++; while(i < 10) {a[i] = a[i+1]; i++; } size- for(i = 0; i < size; i++) printf("%d", a[i]); return 0; getchar(); } (from 100+ Most Important C Programs with Output: for Students & Teachers by Rohit Gupta, Amazon. com)

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, BardiFan
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
image
Engineering, 03.07.2019 23:20, abbz13
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
image
Engineering, 04.07.2019 18:20, RiverH246
Air flows over a heated plate àt a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point. the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
image
Engineering, 04.07.2019 18:20, cxttiemsp021
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
Do you know the correct answer?
The following script will delete an element of desired location from an array. First, run the follow...

Questions in other subjects: