Question: This is a very simple program to get you started with structures, classes and objects. Create a Fraction structure with data members numerator and denominator
- This is a very simple program to get you started with structures, classes and objects. Create a Fraction structure with data members numerator and denominator (both integers). Create a class called FractionClass that has Fraction and methods readafraction(int, int) and printafraction() to return a double. In main, use a loop to read data until the sentinel value (-1), and print the fraction and the value of the fraction in decimal notation.
- The program must be in C#
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
