Question: Question 5 4 p Which XXX will complete the code to calculate c = a2 + b2 + 2ab? public class MyCalc { public int

 Question 5 4 p Which XXX will complete the code to

Question 5 4 p Which XXX will complete the code to calculate c = a2 + b2 + 2ab? public class MyCalc { public int powerSq(int num) { return num * num; public int mult(int a, int b) { return a * b; public static void main(String args) { int a = 1; int b = 2; int c; MyCalc myCalc = new MyCalc(); XXX O c = powerSq(a, b) + powerSq(a, b) + 2 * mult(a, b); c = myCalc.powerSq(a) + myCalc.powerSq(b) + 2 * myCalc.mult(a, b); O c = powerSq(a) + powerSq(b) + 2 * mult(a); O c = myCalc.powerSq(a) + myCalc.powerSq(b) + 2 * myCalc.mult(a)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!