Here you go, it does have a solution, the answer is two.
Because there are only two things you can do with these two " family" members. 81 divided by 9 is 9. 9 times 9 is 81. Strictly speaking, there should be three in the family: 9,9 and 81 9 is the square root of 81. 81 is the 9 squared.
The suquare root is 10. it is a rational number
What language are you writing this in? C? Javascript? Java? Are you allow to have parameters?
The general idea should be the same. Since 1 dollar = 100 pennies, we should write something like...
Java:
public static double numberofpennies(double dollars, double penny) {
double sum = 0;
// The amount of pennies that dollar represents
double converted = dollars * 100.0;
sum = converted + penny;
return sum;
}
Note: You should probably place this question under the category computer and technology instead of math. Also, this is just an example of what you could possibly write. What parameters you are allowed to use, what type (double? int? etc?) of pennies are you allowed to return, etc. depends on how you write it.