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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!