subject
Engineering, 17.09.2019 20:00 Thania3902

All instructions are given in the form of comments in the file. you are to again run the file in both gcc and visual studio (2017 or 2015 version). observe the outputs and make changes as asked.#include #pragma warning(disable : 4996) // needed in vs// cse 240 fall 2018 homework 2 question 3 (25 points)// note: you may notice some warnings when you compile in gcc or vs, that is okay.#define positive_1(x) ((x > 0) ? x : 0)#define polynomial_2(a, b) (a*a + 2*a + 4*a*b - b*b)int function_1(int a, int b) {return (a*a + 2*a + 4*a*b - b*b); }(a) run this program in visual studio(vs) and then again in gcc. note the output values for function_1 and polynomial_2.void part2(int x, int y) {int x_copy = x, y_copy = y; printf("function_1(x, y) = %d \n polynomial_2(x, y) = %d \n\n", function_1(++x, ++y), polynomial_2(++x_copy, ++y_copy)); (b) correct the program so that function_1 and polynomial_2 produce same correct output of 371.

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, alyssabailey7545
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
image
Engineering, 04.07.2019 18:20, dlr1628
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
image
Engineering, 04.07.2019 19:10, juneham
Estimate the change in specific internal energy au and specific enthalpy h from inlet to outlet for ethylene glycol (a liquid) flowing through each of the following devices: (a) a heat exchanger where the glycol temperature increases from 20 °c to 80 °c; (b) a pump operating at about 25 °c and increasing the glycol pressure from 100 kpa to 8 mpa.
Answers: 2
image
Engineering, 06.07.2019 04:10, kathiewallentin1767
Steam enters a converging-diverging nozzle at 1.0 mpa and 500°c with a negligible velocity at a mass flow rate of 2.5 kg/s, and it exits at a pressure of 200 kpa. assuming the flow through the nozzle to be isentropic, determine: the exit area and (a) (b) the exit mach number
Answers: 2
You know the right answer?
All instructions are given in the form of comments in the file. you are to again run the file in bot...

Questions in other subjects: