Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

Step by Step Solution

3.36 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

Test java program that prompts user to enter name minutes and cost of the minute and the print total ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
6093f3edc1cee_24323.pdf

180 KBs PDF File

Word file Icon
6093f3edc1cee_24323.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Programming

Authors: Joyce Farrell

9th edition

1337397075, 978-1337397070

More Books

Students also viewed these Programming questions