Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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-2017/Josh William/2.45 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 Destination number Duration Call Date Callee Name Cost

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

How to solve maths problems with examples

Answered: 1 week ago

Question

1. Who will you assemble on the team?

Answered: 1 week ago