Latriece Williams
@lwilliams7
1
Write a one line ternary statement that sets your AC's isOn property to true when the temperature is greater than or equal to 75, and sets it false in
1
Create a property called testScore of type Int. Write a switch statement that will print out a grade based on the student's score.
Score Criteria
A+:
1
Create a property called testScore of type Int. Write a switch statement that will print out a grade based on the student's score.
Score Criteria
A+:
1
let temperature = 68
If temperature = 68
print("the air conditioning should be turned on")
vedprad1 You have three problems:
The If should be lowercase, like this: if.
You do not need an else if, just an else.
The second print should also be surrounded by braces, like this: {}.
Your final product should look like this:
let temperature = 68
if temperature < 68 {
print("the Air Conditioning should be turned off")
}else {
print("the air conditioning should be turned on")
}
If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!3 years ago
3
Write a program for your smart thermostat. Do the following using a temperature, isRaining, and isOn property,
If the temperature is less than 68 deg
MarkWoloshin I've been looking for a water filter for my water system at home for a long time. I asked my friends and they recommended this website check out. It's where I found all the different Types of Air Compressor Water Filter. I recommend it to those who also can not decide what kind of filter to get.9 months ago
leciafosl In most cases, the air conditioner can be kept for only a short time without replacing it. If you leave it unattended for even a few minutes, the compressor might start to work and unleash a frighteningly loud noise that can hurt your ears. You should always call a few days ahead of time to let the air conditioner installer know that you plan to be away for an extended period. Most household air conditioners have a schedule that tells them when and where they need to be serviced. I had a similar1 year ago