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

Another question on Engineering

question
Engineering, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
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
question
Computers and Technology, 03.02.2020 11:53
Questions on the website: 13722362