Question: Incorrect Question 9 0/10 pts Given: int a = 2, b = 4, C = 11, result; double d1 = 3.4, d2 = 1.7, doubleResult;
Incorrect Question 9 0/10 pts Given: int a = 2, b = 4, C = 11, result; double d1 = 3.4, d2 = 1.7, doubleResult; doubleResult = (a + c) % a* d2; 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. (a + c) --> (2 + 11) -->? (the parentheses take precedence over modulus and multiplication). 2.?% a --> ? % 2 -->?? (the modulus is done before the multiplication because it comes first from left to right; the remainder is ??). 3.??* d2 --> ??. 1.7 -->??. 1.7 --> ??? (the ?? comes from step 2; it gets implicitly promoted from an int to a double)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
