Simple Program Get Started Structures Classes Objects Create Fraction Structure Data Membe Q43781735
- This is a very simple program to get you started withstructures, classes and objects. Create a Fraction structure withdata members numerator and denominator (both integers). Create aclass called “FractionClass” that has Fraction and methodsreadafraction(int, int) and printafraction() to return a double. Inmain, use a loop to read data until the sentinel value (-1), andprint the fraction and the value of the fraction in decimalnotation.
- The program must be in C#
Expert Answer
Answer to This is a very simple program to get you started with structures, classes and objects. Create a Fraction structure with…
OR