Write a program that fulfills the requirements specified


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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that fulfills the requirements specified
Reference No:- TGS02780512

Expected delivery within 24 Hours