Question: Description: You will be developing a phone record analysis program as described below. Your program reads phone call information from a text file name phoneCalls.txt.

Description: You will be developing a phone record analysis program as described below.

Your program reads phone call information from a text file name phoneCalls.txt. (the info from the text file can be found at the end). Each record in the file has the following format 480-678-1234/10/10-08-2017/Josh William/2.45 (Destination number/ Duration Call/ Date/ Callee Name/ Cost). Program reads record at a time from the file and generates an array list of phone call objects. The phone call object has the destination phone number, duration, call date, callee name (person who called by the caller), and the cost of the call. You can add required methods phone call object based on your design.

Once the object is created, it will be placed in an array list called phone calls. Then, your program can perform following operations

A) Search a call based on the destination number

B) Display the longest call information

C) Display the shortest call information

D) Sort the phone calls array list based on the call duration and display calls in the sorted order (display the destination phone number and the duration)

E) Prepare a phone bill and store the phone bill in the phone bill.txt file. Format of the phone_bills.txt is given below.

F) Exit the program

Text File format-----------

phone_bills.txt

Destination Number Duration (m) Cost ($)

480-678-1234 10 2.50

602-578-1000 12 3.15 . . .

Total: $

textFile information---------------------------------------------

480-678-1234/10/10-08-2017/Josh William/2.50 602-578-1000/12/10-05-2017/James Nash/3.15 212-668-2335/5/10-01-2017/Pat Johnson/1.45 515-478-4234/1/10-03-2017/Robert William/0.50 480-378-1235/24/10-03-2017/Michael Smith/10.85 480-278-6236/11/10-04-2017/Nancy Miller/4.56 

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!