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

  The acme corporation is looking to rapidly advance

This solution provides the learner with an understanding of how best to accomplish the task. This solution is comprised of over 2000 words of text with 4 references.

  Discuss global cyber security policy

Global Cyber security Policy and Inter contentedness of Assessments

  Questionplan a payroll class that has data members for an

questionplan a payroll class that has data members for an employees hourly pay rate and number of hours worked.

  Create a table named faculty to store facultyid

Create a table named Faculty to store FacultyID( Primary key), FirstName, LastName, Email, Date of birth and number of courses taught to date.

  Derive ones and twos complement

Following the conversion technique of the preceding problem, convert (2574), to base 3. If (130)x = (28)10, find the value of X (X is a positive integer).

  Calculate minimum distance from the start to the goal

Calculate the minimum distance from the start to the goal with passing all the checkpoints -Specification - The aim of this game is to arrive at the goal (G) from the start (S) with the shortest distance.

  Which would be the first place that you would look at for

users from the finance department access an oracle server for their operations. the computers on the finance department

  Compare and contrast telnet and ftp

find out whether or not additional components could be added to the IPv4 protocol to enhance its usefulness.

  Solve the single source shortest paths problem

Form graph G' from G by adding the similar positive number, p, to all of the edge weights in the graph. This positive number should be chosen so that all the edge weights in G' are positive. (p = 1 + | min edge weight in G|). Run Dijkstra's algori..

  What is a dont care condition

Explain how don't care conditions can be used to build a circuit using OR gates, AND gates, and inverters that produces an output of 1.

  Distinguish between a parameter and an argument

Distinguish between a parameter and an argument. Distinguish between a value parameter and a reference parameter.

  Design a combinational logic circuit

Design a combinational logic circuit that displays the hexadecimal value of a gray code input according to the specifications.

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