209k views
2 votes
Let's now use our new calculator functions to do some calculations!

A. Add the square of 3 to the square root of 9 Save the result to a variable called calc_a
B. Subtract the division of 12 by 3 from the the multiplication of 2 and 4 Save the result to a variable called calc_b
C. Multiply the square root of 16 by the sum of 7 and 9 Save the result to a variable called calc_c
D. Divide the square of 7 by the square root of 49 Save the result to a variable called calc_d

User Daslicht
by
4.6k points

1 Answer

3 votes

Answer:

Ans1.

double calc_a;

calc_a=Math.pow(3.0,2.0)+Math.sqrt(9);

Ans2.

double calc_b;

calc_b=((12.0/3.0)-(2.0*4.0));

Ans 3.

double calc_c;

calc_c=(Math.sqrt(16.0)*(7.0+9.0));

Ans 4.

double calc_d;

calc_d=Math.pow(7.0,2.0)/Math.sqrt(49.0);

Step-by-step explanation:

The expressions are done with Java in answer above.

User Vikas Rajput
by
5.1k points