subject
Engineering, 22.02.2020 02:26 csnider

C Write a program that will evaluate simple expressions such as 17 3 and 3.14159 * 4.7. The expressions are to be typed in by the user. The input always consists of a number, followed by an operator, followed by another number. The operators that are allowed are , -, *, and /. (Hint: treat the operators as strings). Your program should read an expression, print its value, read another expression, print its value, and so on. The program should end when the user enters 0 as the first number on the line.

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:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 06.07.2019 03:20
Acountershaft is supported by two tapered roller bearings using indirect mounting. the radial bearing loads are 1120 lb for the left-hand bearing and 2190 lb for the right-hand bearing. the shaft rotates at 400 rpm and is to have an l10 life of 40,000 hours and an application factor of 1.4. assume ka2k 15, and find the required radial rating of each bearing
Answers: 3
question
Engineering, 06.07.2019 04:10
Aspherical thermocouple measurement errors a spherical thermocouple made of constantin transfer coefficient between the gas and the thermocouple is h used to measure the temperature of a gas. the heat 400 w/m2 k. calculate the maximum diameter d of the thermocouple if the thermocouple's measurement error should be w 23 within 5% of the initial temperature difference in 5 seconds. for constantin, k 8920 kg/m3, and c 410 j/kg. k.
Answers: 3
You know the right answer?
C Write a program that will evaluate simple expressions such as 17 3 and 3.14159 * 4.7. The expressi...
Questions
question
World Languages, 21.09.2019 07:30
question
Health, 21.09.2019 07:30
Questions on the website: 13722363