Write a program that calculates the average of up to 10 English distances input by the user. Create an array of objects of the Distance class with the data members as feet and inches to calculate the average create a member function called avgDistance(). (Hint: 12 inches = 1 Feet)
Aucun commentaire:
Enregistrer un commentaire