Site Search

CS 111: Program 6 main content

Based on Programming Challenges #7: Long Distance Calls on page 871 of your textbook.

A long-distance provider charges the following rated for telephone calls:

Rate Category Rate per Minute
Daytime $0.07
Evening $0.12
Off-Peak $0.05

Create a GUI application that allows the user to select a rate category (from a set of radio buttons), and enter the number of minutes of the call in a text field. A dialog box should display the charge for the call.

Sample Session

Program 6 JFrame --> Program 6 Output

UML Class Diagram

program6c (7K)

What to turn in

  1. Source program printouts stapled together with file header comments on all printouts
  2. Be sure your project is saved in your U:\Program6\ folder
  3. The assignment is due at the start of lab 7. You program must compile and produce output for you to receive any credit.
    • You are allowed one late programming assignment for the quarter.

Grading Criteria

50 points maximum