Question: Write in C + + the definition of the class template OrderedSimpleVector, derived from the class SimpleVector, to implement an ordered list. Add members function,
Write in C the definition of the class template OrderedSimpleVector, derived from the class SimpleVector, to implement an ordered list. Add members function, insert a value in order of descendent, calculate the maximum and minimum inches of rain, and display the list of data to this class. Provide the definitions of the nonabstract functions. Also, define a RainFall class with two attributes named the month and the inches of rainfall for that month. Implement the member functions and overload the operator. Use class exceptions to validate the monthly rain; do not accept negative numbers. Define the RainNegative class to validate. Write a program to test your class.
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
