Use object-oriented design to design a class called PhoneBill that calculates and prints the balance owed by
Fantastic news! We've Found the answer you've been seeking!
Question:
Use object-oriented design to design a class called PhoneBill that calculates and prints the balance owed by each customer of a phone company during the billing period. Your PhoneBill class is to receive the customer’s current balance and the total time, in minutes, of phone calls during the billing period. The input time is to be validated and the cost of calls is to be calculated at 25c per minute. Your class is to print the input balance, the phone call time, the cost of the phone calls, and the total amount due.
a Design the class table.
b Write an algorithm for each operation in the table.
c Write a test or driver algorithm to test the solution.
Related Book For
Accounting Information Systems basic concepts and current issues
ISBN: 978-0078025334
3rd edition
Authors: Robert Hurt
Posted Date: