Create a comma-separated file containing multiple cdrs

Assignment Help Basic Computer Science
Reference no: EM131683326

Question: Phone records Telecom operators such as AT&T or Verizon maintain records of all the calls made using their network (named "call detail records," or CDRs). Usually, the CDRs are collected at the routers within the telecom networks, and millions of CDRs are stored in a single file. Although most of the records are in correct format, some records (a handful) either do not contain all the requisite fields or contain garbled data; these records cause problems during any data processing Consider a simplified version of a CDR that has only four fields: date and time of the call, source number, destination number, and duration of the call.

Create a comma-separated file containing multiple CDRs. In that file include some erroneous or incomplete records that: Do not have duration of the call (no duration, no billing!) Have garbled phone numbers, like 12-345-6789 or 123-45?-6789 Also, create some records in which the source or destination number is recorded as null (this happens sometimes if it was an international call). Create some records in which the comma is missing between the source and destination numbers-e.g., 123-456-7890 987-654-3210. Also, create another file containing all the North American area codes (see https://www.bennetyee.org/ucsd-pages/area.html).

(a) Find the call that had the longest duration and find its source and destination regions.

(b) Find the number of garbled or incomplete CDRs.

(c) How many international calls were made?

(d) Create a list of all calls made on a particular date.

(e) Create a list of all calls made during a particular hour.

(f) Optional: Plot a distribution of the arrival times of the calls. This plot could help in identifying busy and idle periods of the network. Use exceptions (IndexError, ValueError, TypeError) to handle erroneous CDRs rather than checking individual cases using if-else constructs.

Reference no: EM131683326

Questions Cloud

Discuss how does social geography measure up against : How does social geography measure up against one another. Economic geography. Are there any border disputes or tension between countries
Write a function that takes a string of words : Write a function that takes a string of words and integers as an argument and returns two lists: one a list of the words, the other a list of the integers.
Hammond limited versus peter gordon incorporated : Hammond Limited versus Peter Gordon Incorporated, reported at page 761 in volume 335 of the Federal Reporter
What are the primary drawbacks of the payback method : What are the primary drawbacks of the payback method as a capital budgeting technique? What is the difference between simple interest and compound interest?
Create a comma-separated file containing multiple cdrs : Create a comma-separated file containing multiple CDRs. In that file include some erroneous or incomplete records that: Do not have duration of the call.
Discuss bolivian energy policy causes concern : discuss a few of the significant challenges and advantages related to the region that are addressed in the films
Explain the person-based and value-based behaviors : How do the Person-based and Value-based behaviors explained in Cardy & Selvarajan support Jack's principles?
List the rights described in the first amendment : 1. List the rights described in the First Amendment. 2. What cases were important to freedom of speech?
What are the rights of consumers : 1) What are the rights of consumers? 2) What is the difference between a written contranct and an oral contract?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd