View the step-by-step solution to:

1) Use object-oriented design to design a class called PhoneBill that calculates and prints the balance owed by each customer of a phone company...



1)    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.

Design the class table.

b Write an algorithm for each operation in the table.

c Write a test or driver algorithm to test solution.

 




2)      Use object-oriented design to design a class called MathsTest that will receive an array of 30 mathematics scores from a Mathematics exam, calculate the class average from the scores and display the class average to the screen.

Design the class table.

b Write an algorithm for each operation in the table.

c Write a test or driver algorithm to test solution.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question