Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. You may assume that the C++ variables named answer, speed, and year have all been declared as integer (int) variables. You may also assume
. You may assume that the C++ variables named answer, speed, and year have all been declared as integer (int) variables. You may also assume that the variable named year has been assigned an integer (int) value. Compose a complete C++ if statement that assigns the value 42 to the variable named answer and assigns the value 48 to the variable named speed if the value of the variable named year is greater than 2424.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started