Write a program that fulfills the requirements specified

Assignment Help Computer Engineering
Reference no: EM131986044

Assignment

I'm in the process of learning Python 3.6, self-studying and trying some online learning sites and example problems. I'm struggling with this one at the moment, that deals with Tuples there are a couple separate .txt files provided to use with the problem to pull the information from (sample.txt & sample-short.txt) which is what the instructions are referencing... I would really appreciate some help, especially with writing the code itself. I always seem to mess up the indentation. Any additional information, like as explaination of each step in the code would also be really helpful and appreciated.

STEP 1:

Write a program that fulfills the requirements specified here: Read and parse the "From" lines and pull out the addresses from the line. Count the number of messages from each person using a dictionary. After all the data has been read print the person with the most commits by creating a list of (count, email) tuples from the dictionary and then sorting the list in reverse order and print out the person who has the most commits.

Sample Line: 'From [email protected] Mon Feb 10 08:15:16 2012'

The program should have the follow functionalities:

1. Program should prompt the user to enter for a file name (sample-short.txt & sample.txt)

2. Program finds line that starts with "From"

3. Program counts the number of messages from each person using a dictionary

4. Program creates a list of (count, email) tuples from the dictionary

5. Program sorts the list in reverse order

6. Print out the person who has the most commits

STEP 2:

1. Write a program to define a class (The class can be anything Ex. Car, Animal, Shape...)

2. The definition of the class has to include at least three attributes

3. The definition of the class has to include at least two functions (Not including __init__())

4. Construct two different objects of this class

5. Call all the functions from both of the two objects in your program.

Reference no: EM131986044

Questions Cloud

What is its after-tax cost of debt : If the company’s bonds are selling for $965 now, and the company’s tax rate is 40%, what is its after-tax cost of debt?
Writers presence - mcquade and atwan : After each assigned reading , you must answer the 1st two questions that follow TEXTBOOKS - The Writer's Presence (8th Ed.) McQuade and Atwan
Identify country that you are comparing with united states : Identify the country that you are comparing with the United States.
Incremental cash flows and present values : Calculate the following from the data below - incremental cash flows-present values-NPV (net present value)-IRR.
Write a program that fulfills the requirements specified : Write a program that fulfills the requirements specified here: Read and parse the "From" lines and pull out the addresses from the line.
Do you think that more multi-housing-apartment complexes : 1. Do you think that more multi-housing/apartment complexes should be smoke-free? Discuss why or why not.
Finite math given that said student is taking history : The randomly selected student is taking Finite Math given that said student is taking History
Create a librarymaterial class : Create a LibraryMaterial class. Each LibraryMaterial consists of a title and an ISBN.* LibraryMaterialCopy has a library card and due date.
Present descriptive statistics of variables remuneration : MAE256 - Analytical Methods in Economics and Finance - Regression Models using Cross Section Data -Present the descriptive statistics of variables remuneration

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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