Question: This is in C. having trouble setting it up Demonstrate your understanding of the opaque object design pattern by completing the following: Create an interface

This is in C. having trouble setting it up
Demonstrate your understanding of the opaque object design pattern by completing the following: Create an interface file called rational.h, implementation file called rational.c and sample main program (in a file called day6.c) that creates a new opaque object for holding fractions called rational. You will need to implement a function to initialize a default rational with a numerator of 0 and a denominator of 1. You will need to then create a function to clean up the object with the naming convention we have used in class. Your main program should create a rational object handle, initialize it, and then clean up the space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
