How should you complete the code?

HOTSPOT
Your instructor has asked you to write a program that uses simple rules to help determine if a person should take the train, drive their car, or ride a bike, depending on the conditions of the weather and the amount of gas in the car’s tank.
The program has the following requirements:
• When the temperature is above 65 degrees and it is not raining, the person should be told to ride their bike.
• When it is raining, the person should be told to drive their car.
• If their car has half a tank of gas or less, they should be told to take the train.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
Hot Area:

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.