Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Determine data types appropriate for the following data: a. The average of four

ID: 3853055 • Letter: D

Question


Determine data types appropriate for the following data: a. The average of four grades b. The number of days in a month c. The length of the Golden Gate Bridge d. The numbers in a state lottery e. The single-character prefix that specifies a component type For the following correct algebraic expressions and corresponding incorrect C++ expressions, find the errors and write corrected C++ expressions: a. (2)(3) + (4)(5) b. 4.6(3.0 + 14.9) (2)(3) + (4)(5) 4.6(3.0 + 14.9) Evaluate the following mixed-mode expressions and list the data type of the result. In evaluating the expressions, be aware of the data types of all intermediate calculations. a. 10.5 + 15/2 + 4.3 = b. 3 * 4 % 6 + 8 = Determine the output of the following program: #include using namespace std: int main()//a program illustrating integer truncation { cout

Explanation / Answer

9)

a)float
b)int
c)float
d)int
e)float
f)char
10)

a)cout<<((2*3)+(4*5))
b)cout<<(4.6*(3.0+14.9))

11

a)22.3(float)
b)20(integer)


12)
answer1 is the integer 2
answer2 is the integer 5
the remainder of 9 divided by 4 is 1
The remainder of 17 divided by 3 is 1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote