Trace the evaluation of the following expressions, and give their resulting values (remember
order of precedence rules and concatenation):
2 + 2 + 3 + 4
“2 + 2″ + 3 + 4
2 + “2 + 3” + 4
“hello 34 “ + 2 * 4
“ll, + 2 + 3 + \\4Il + 5 g 6 + \\7II + (8 + 9)
imagine you are writing a personal fitness program that stores the user’s age, gender, height (in
feet or meters) and weight (to the nearest pound or kilogram). Declare variables with the
appropriate names and types to hold this information.
Imagine you are writing a program that stores a student’s year (Freshman, Sophomore, etc.), the
number of courses the student is taking, and his or her GPA on a 4.0 scale. Declare variables
with the appropriate names and types to hold this information.
I. Which of the following is the correct syntax for declaring a real number variable named grade
and initializing Its value to 4.0?