Create a "library" (much like stdio.h)
that allows a client program to
perform arithmetic using rational numbers.
Learn to use structs.
Learn to use client, interface, implementation paradigm
Learn about computer algorithms, including Euclid's greatest
common divisor algorithm, for basic arithmetic. You will see that
it's not trivial!
Checklist
Enrichment Links
There are other ways to compute rational approximations to
e and pi. The following are accurate to 16 digits:
e ~ 28245729/10391023, pi ~ 245850922/78256779.