Question: Given integer carAge, write multiple if statements: If carAge is 1930 or later, output Probably has a radio.. If carAge is after 1942, output Probably
Given integer carAge, write multiple if statements:
If carAge is 1930 or later, output "Probably has a radio.".
If carAge is after 1942, output "Probably can carry several people.".
If carAge is after 1997, output "Probably has traction control.".
End with a newline.
Ex: If the input is 1945, then the output is:
Probably has a radio. Probably can carry several.
in java code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
