Answer:
temp = 47
if temp > 40:
print("It’s extremely hot day today!")
else:
print("It’s not too hot!")
Explanation:
*The code is in Python.
Create a variable called temp and set its value as 47
Check the temp using if-else structure. If the temp is greater than 40, print "It’s extremely hot day today!". Otherwise, print "It’s not too hot!".
Answer:
Person
Explanation:
At
Person p = new Person(...);
int m1 = p.getMoney( ); // assignment 1
Person class which is base class for all sub class (Student, Employee and Retired ) creates an object which referenced is stored in p variable, and getMoney() is method which refereed Person's getMoney() method, so Person is the answer of above question