Question: This week you will create a program that calculates the average of a number of fractional values entered by the user. Start by asking the
This week you will create a program that calculates the average of a number of fractional values entered by the user. Start by asking the user how many fractions they wish to enter. Then prompt the user to enter that number of fractions. Then calculate and display the average of all of those values. There are a couple of additional internal C# requirements for this program: You must create (and use) a class Fraction to represent the fraction values. The obvious approach would be to have two int attributes: numerator and denominator. You must dynamically allocate (and use) an array to hold all the fractions entered by the user. The program might be simpler without the array. But we want you to practice using arrays! Display the resulting average as a Fraction.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
