Opens that file and reads through the file

Assignment Help Basic Computer Science
Reference no: EM131660288

In this second phase of the project you will be writing a Python application that will read email data from a file and you will analyzing the data to figure out the distribution by hour of the day for each of the messages.

The program must: 

  1. Prompt for a file name
  2. Opens that file and reads through the file
  3. Displays a custom error message if the file does not exist
  4. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.
  5. From [email protected] Sat Jan 5 09:14:16 2008
  6. Accumulated the counts for each hour (key)
  7. Print out the count for each of the hours after the program has completed execution. The counts should be sorted by hour as shown below.
  8. 00 13
  9. 01 17
  10. 02 01
  11. 03 29

Reference no: EM131660288

Questions Cloud

Discuss the various current leadership theories : the various current leadership theories described in the lecture, help me to describe my leadership style of transformational leadership
Organizations best practices in project risk management : Develop your own approach based on your organization's best practices in project risk management and/or utilize effective processes/ tools/ techniques.
Differentiate potential tort liability and tax liability : As an employer, you may at some time consider hiring an independent contractor. Hiring workers as independent contractors instead of as employees may help.
What are the pros and cons of having a phr : Patient portals and personal health records (PHRs) are commonplace today. What are the pros and cons of having a PHR?
Opens that file and reads through the file : In this second phase of the project you will be writing a Python application that will read email data from a file and you will analyzing the data to figure out
What do you normally do when you are faced with issues : Men are less likely to face emotional problems than women. Why do you think men are less likely to seek help
Define a class representing an inflatable balloon : Define a class representing an inflatable balloon. Balloon should have a method inflate( ) (which can be called many times) and a maximum inflation pressure.
Design requires part criticality analyses for candidate : Design requires part criticality analyses for candidate parts identified through a functional fault tree analysis to create a rank ordered critical items list.
Prevent sql injection attack : Why a Firewall can not prevent SQL injection attack?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Utilizing supporting documentation obtained

Please provide a one page response to the following topic utilizing supporting documentation obtained from your textbooks and the Internet.

  Briefly describe the tpm waterfall method

Briefly describe the TPM waterfall method. Briefly describe one or more Agile project management approaches.

  Implement in c++ the external merge sort algorithm

Extend your implementation of externalMergesort by removing the restriction that the fi le contains 2n blocks.

  Generate dropdown to create example c++ code

Submit your C++ source code that you generated from RAPTOR with comments added to each line or where necessary to explain program flow. Also submit the RAPTOR file (flowchart) of your working program.

  Methods-majority of target audience can play applications

What are some methods that we can guarantee that majority of target audience can play applications?

  Identify all candidate keys for each relation

Create a Relation Schema for S given above. Write out both the full and the abbreviated schemas as shown on Slide of the lecture notes in Module 3. Using a table as a physical representation, create a relation for S as defined above. The table sho..

  Challenging issues in identifying good alternative solutions

What are the one or two most challenging issues in identifying good alternative solutions that meet the IT acquisition requirements that were defined? Explain your reason(s) and how the issue(s) can be successfully addressed.

  What are group selectors

1. What are group selectors? How are they different than other selectors? What makes them powerful? 2. What is a rem? How is it different than em? What are the strengths of using a rem over an em? What are the drawbacks?

  Processes of human beings

What is the name of the computer program that simulates the thought processes of human beings?

  What are major challenges of mining a huge amount of data

What are the major challenges of mining a huge amount of data (e.g., billions of tuples) in comparison with mining a small amount of data (e.g., data set of a few hundred tuple)?

  Review case study of the depression revisited

Depression revisited. Consider again the study of the association between depression and cardiac disease survivability in Exercise.

  Calculate the peak manning

A software project is planned to cost 95PY in a period of 1 year and 9 months. Calculate the peak manning.

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