Write a Fraction with a numerator and a denominator. toDouble returns the value as a decimal, and show returns it as text like "3/4".
class Fraction { Fraction(int n, int d); double toDouble(); String show(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.