Question: 0/10 pts Incorrect Question 7 Given: int a = 2, b = 4, c = 11, result; double d1 = 3.4, d2 = 1.7, doubleResult;

 0/10 pts Incorrect Question 7 Given: int a = 2, b

0/10 pts Incorrect Question 7 Given: int a = 2, b = 4, c = 11, result; double d1 = 3.4, d2 = 1.7, doubleResult; doubleResult = (double)c/b+ a; To two decimal places, as appropriate, e.g., if the answer is 6, you should enter 6 or 6.00 depending on the data type, what gets stored in result or doubleResult, as appropriate? Enter only the number in the field provided, and your answer must be exact! 1. (double)c --> (double)11 -->? (casting takes precedence over division). 2.?/b-->?/4 --> ? / 4.00 --> ? (the 4 is implicitly promoted from an int to a double). 3.? + a --> ? + 2 -->? + 2.00 --> ? (the 2 is implicitly promoted from an int to a double)

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 Databases Questions!