Question: Each program operates on variables created at the start of the program, to which I've assigned initial values for you to test. o Programs that
Each program operates on variables created at the start of the program, to which I've assigned initial values for you to test. o Programs that work only for the initial values will lose pointsyou should write general programs that work for any values. I suggest changing the variable values to test different scenarios in the first two programs. Implement the conditional statement shown below (A, B, X and Y are variables). Assume A =10, B = 6. Initial values of X, Y are 0. if (x B) { X = Y - A; } else { X = Y + 4; Y = X + 4; 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
