Okay im new to swift coding and and trying to figure this out but cant seem to write it correctly. how would i write this in swift???
Write a program for your smart thermostat. Do the following using a temperature, isRaining, and isOn property,
If the temperature is less than 68 degrees or it is raining, the Air Conditioning should be turned off. Otherwise the Air Conditioning should be turned on.
Try different combinations of temperatures and weather conditions (raining vs not raining) to make sure your thermostat works correctly.
Use a print statement to check the air conditioning's status.