Question: Submission C header (rational.c) and source (rational.c) files and test program (day6.c), on Blackboard. Description Demonstrate your understanding of the opaque object design pattern by
Submission C header (rational.c) and source (rational.c) files and test program (day6.c), on Blackboard. Description 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 mumerator 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. Turn in your three files on Blackboard
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
