Write a two-class application that has as a data member an array that can store state area

Question:

Write a two-class application that has as a data member an array that can store state area codes. The class should have a member method that enables users to test an area code to determine if the number is one of the area codes in the state exchange. The member method should use one of the predefined methods of the Array class and return true if the argument to the method is one of the state codes. Override the ToString( ) method to return the full list of area codes with each surrounded by parentheses. To test the class, store a list of state codes in a one-dimensional array. Send that array as an argument to the class constructor.

Test the instance methods. Your application should work with both an ordered list of area codes or an unordered list.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: