Engineering
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.

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, 19deleonl
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
image
Engineering, 04.07.2019 18:10, xboxdude06
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
image
Engineering, 04.07.2019 18:10, chadatkin
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
image
Engineering, 04.07.2019 18:20, safiyabrowne7594
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
Do you know the correct 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:

Konu
Mathematics, 29.09.2021 20:40
Konu
Mathematics, 29.09.2021 20:40