Explanation:
It's placed near the door. When a visitor presses the button, the bell rings inside alerting you that someone is at the door.
if(Expression to be tested) {
code to execute
} else if(Expression to be tested) {
code to execute
}
you can have as many else ifs as you want. But that's what it looks like.
Answer:
#part 1
#read the amount
amount=int(input("enter the amount:"))
#find the dollars
doll=int(amount/100)
// find the cents
cent=amount%100
#print output
print("{} dollars and {} cents.".format(doll,cent))
#part 2
#read a floating point
temperature=float(input("enter the temperature:"))
#part 3
#read a word
firstWord=input("enter a word:")
Explanation:
In part 1, read amount and the find the dollars with the help of "/" operator. Then find the cents with "%" operator and print both.In part 2, read a point and cast it to float then assign it to variable "temperature".In part 3,Read a word and assign it to variable "firstWord".
Output:
enter the amount:4321
43 dollars and 21 cents.
enter the temperature:12.5
enter a word:hello
Answer:
C is not equal to the other two.
Explanation:
A = 35
B = 35
C is actually equal to 36.