Answer:
def floor_sum(number1, number2):
total = number1 + number2
if total >= 0:
return int(total)
else:
return int(total) - 1
print(floor_sum(1.1, 3.05))
Explanation:
*The code is in Python.
Create a function called floor_sum that takes two parameters, number1 and number2
Sum them and set it to the total
Check if the total is positive number or 0, return the integer part of the total. Otherwise, subtract 1 from the integer part of the total and return it.
Call the function with given parameters in the question and print the result
Note that if the result is a negative value like -5.17, the floor of the result is -6 not -5.