Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with this JAVA program. Thank you! This is what the phonecalls. txt file looks like 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

Please help with this JAVA program. Thank you!

image text in transcribed

image text in transcribed

This is what the phonecalls. txt file looks like 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 
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". Each record in the file has the following format 480-678-1234/10/10-08-2017Josh William/2.4 5, 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) B) Prepare a phone bill and store the phone bill n the "phone bill.txt" file. Format of the "phone_bills.txt" is given below. F) Exit the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

1.5 Summarize HRM issues for small businesses.

Answered: 1 week ago

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago