November 28, 2018
A wireless service provider has three different subscription packages for its customers.
We want to design and implement a class for this wireless service provider.
Design a class named WSP
that calculates a customer’s monthly bill. It should contains:
Write the UML diagram for this class.
Work on the WSP
class and on a test program in parallel: implement the first three steps, and then write a small test program. Make sure you can compile your program, and that it behaves as expected before continuing. Write the second constructor, and test it by creating an object using it. Continue with the next-to-last step, test the method, and finally write the last step. To test this last method, you should create numerous objects, and call the method with them.
Try to use a switch
statement for this last method.