Answer:
The function is written in C++
bool products(double num1, double num2, double num3) {
if(floor(num1 * num2) == floor(num3)){
return true;
}
else
{
return false;
}
}
Explanation:
I answered this question using C++ programming language.
This line defines the function with three parameters; num1 to num3
bool products(double num1, double num2, double num3) {
This checks if the floor of num1 * num2 equals floor of num3
if(floor(num1 * num2) == floor(num3)){
If yes, this returns true
return true;
}
else {
If otherwise, this returns true
return false;
}
The method ends here
}
<em>I added the full program as an attachment that include the main method</em>