Explain why? average1 is declare to the integer type\'s variable and assign the
ID: 3850700 • Letter: E
Question
Explanation / Answer
1. The resultant should be Integer (Program output : 12) because average1 is integer type as well as numerator is integer type. If numerator is integer, the result will be in the form of integer.
2. The resultant should be Integer (Program output : 12) because average2 is integer type as well as both numerator and denominators are integer type. If both numerator and denominators are integers, the result will be in the form of integer.
3. The resultant should be Double (Program output : 12.5) because average2 is Double datatype and denominator is Double. If the numerator is integer and the denominator is double, the result will be in the form of Double.
4. The resultant should be Integer (Program output : 12) because both numerator and denominators are integers. If the numerator and the denominators are integer, the result will be in the form of integer.
5. Since numberator and denominators are integers the result should be integer (Program output : 12).
6. Since denominator is Double type, the result should be in the form of Double (Program output : 12.5).
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.