Engineering, 24.03.2020 03:32 kelseeygee
The following C program asks the user for two input null-terminated strings, each stored in uninitialized 100-byte buffer, and compares them. The program then shows the alphabetical order of both strings, by reporting whether the first is less than the second, the second is less than the first, or both are equal.#include «stdio·h> int main() // Two strings, 100 bytes allocated for each char si [100; char s2 [100]; // Read string 1 printf("Enter string scanf("%s", s1); 1: "); // Read string 2 printf("Enter string scanf("%s", s2); 2: "); // Compare them int index = 0; while (1) / Load characters from s1 and s2 char c1 = s1[index]; char c2 = s2[index]; // Current character is greater for s1 if (c1 > c2) printf("s1 > s2\n") break; // Current character is greater for s2 if (c1 < c2) printf("s1
Answers: 3
Engineering, 04.07.2019 18:20
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
Engineering, 04.07.2019 19:10
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
Answers: 1
Engineering, 04.07.2019 19:10
A)-in the process of engineering design, explain the contribution of material selection. b)- explain the procedure of synthesis as is employed in engineering design. c)- is there any relationship between ergonomics and engineering design? explain. d)- safety consideration in engineering design includes human, product and the enviroment . explain how safety will be incorporated into the design?
Answers: 3
Engineering, 06.07.2019 04:10
Consider a power plant with water as the working fluid that operates on an ideal rankine cycle. it has a net power output of 45mw. superheated steam enters the turbine at 7mpa and 500°c (h=3411.4 kj/kg; s=6.8 kj/kg k) and is cooled in the condenser at a pressure of 10 kpa by running cooling water from a lake through the tubes of the condenser at a rate of 2000 kg/s. (a) show the cycle on a t-s diagram (a right schematic is fine - you do not need to calculate the temperatures at each point); (b)-determine the work done by the turbine and the pump in kj/kg; (c)-the mass flow rate of water used by the power plant; (d)-the thermal efficiency of the cycle; (e)-the temperature rise of the cooling water. assume the cooling water is incompressible with cp 4.18 kj/kg°c.
Answers: 3
The following C program asks the user for two input null-terminated strings, each stored in uninitia...
English, 13.05.2021 16:40
Health, 13.05.2021 16:40
Mathematics, 13.05.2021 16:40
History, 13.05.2021 16:40
Mathematics, 13.05.2021 16:40
Geography, 13.05.2021 16:40
Computers and Technology, 13.05.2021 16:40
English, 13.05.2021 16:40
Mathematics, 13.05.2021 16:40
History, 13.05.2021 16:40
Mathematics, 13.05.2021 16:40
History, 13.05.2021 16:40