Question: Second picture example and the way we must follow Marks:30) Question 2 Design a console application that will print the cell phone bill of a

Second picture example and the way we must follow  Second picture example and the way we must follow Marks:30) Question
2 Design a console application that will print the cell phone bill

Marks:30) Question 2 Design a console application that will print the cell phone bill of a customer. Make use of an abstract class named Cell that contains variables to store the customer name, talk time and price per minute. Create a constructor that accepts the customer name, talk time and price per minute as parameters, and create get methods for the variables. The Cell class must implement an iPrintable interface that contains the following public interface iPrintable public void print bill) Create a subclass called Cell_Billing that extends the Cell class. The Cell_ Billing class must contain a constructor to accept the customer name, talk time and price per minute as parameters. Write code for the print bill method which calculates the total due (talk time price per minute). Finally write a useCell class to instantiate the Cell_Billing class. Sample output is shown below and you may use the same values to test your application. O The Independent Institute of Education (Pty) Ltd 2017 Page 4 of 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!