Copy the code to the above program into a new program to figure out who has...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Copy the code to the above program into a new program to figure out who has the most messages in the file. After all the data has been read and the dictionary has been created, look through the dictionary using a maximum loop (see Chapter 5: Maximum and minimum loops) to find who has the most messages and print how many messages the person has. Enter a file name: mbox-short.txt cwen@iupui.edu 5 Enter a file name: mbox.txt zqian@umich.edu 195 Your program should automatically load https://www.py4e.com/code3/mbox.txt. I should not need to input or upload anything to run this. Attach File Browse Local Files Browse Content Collection MC Home - montg X X 19 F 888 D M. E 42F Sunny Blackboard Lea X Search results CO NEW Individua x | Co Untitled15.ipyn x y! corsehero - Ya X bb-montgomerycollege.blackboard.com/ultra/courses/_119290_1/cl/outline * Question Completion Status: QUESTION 4 This program records the domain name (instead of the address) where the message was sent from instead of who the mail came from (i.e., the whole email address). At the end of the program, print out the contents of your dictionary. python schoolcount.py Enter a file name: mbox-short.txt {'media.berkeley.edu': 4, 'uct.ac.za': 6, 'umich.edu': 7, 'gmail.com': 1, 'caret.cam.ac.uk': 1, 'iupui.edu': 8} Your program should automatically load https://www.py4e.com/code3/mbox.txt. I should not need to input or upload anything to run this. Attach File Browse Local Files Dashboard Q Search Browse Content Collection H X + 10 points Save All Answers > T Save Answer Save and Submit X B : 9:49 AM 3/6/2023 Copy the code to the above program into a new program to figure out who has the most messages in the file. After all the data has been read and the dictionary has been created, look through the dictionary using a maximum loop (see Chapter 5: Maximum and minimum loops) to find who has the most messages and print how many messages the person has. Enter a file name: mbox-short.txt cwen@iupui.edu 5 Enter a file name: mbox.txt zqian@umich.edu 195 Your program should automatically load https://www.py4e.com/code3/mbox.txt. I should not need to input or upload anything to run this. Attach File Browse Local Files Browse Content Collection MC Home - montg X X 19 F 888 D M. E 42F Sunny Blackboard Lea X Search results CO NEW Individua x | Co Untitled15.ipyn x y! corsehero - Ya X bb-montgomerycollege.blackboard.com/ultra/courses/_119290_1/cl/outline * Question Completion Status: QUESTION 4 This program records the domain name (instead of the address) where the message was sent from instead of who the mail came from (i.e., the whole email address). At the end of the program, print out the contents of your dictionary. python schoolcount.py Enter a file name: mbox-short.txt {'media.berkeley.edu': 4, 'uct.ac.za': 6, 'umich.edu': 7, 'gmail.com': 1, 'caret.cam.ac.uk': 1, 'iupui.edu': 8} Your program should automatically load https://www.py4e.com/code3/mbox.txt. I should not need to input or upload anything to run this. Attach File Browse Local Files Dashboard Q Search Browse Content Collection H X + 10 points Save All Answers > T Save Answer Save and Submit X B : 9:49 AM 3/6/2023
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Solve the following general system by inverting the coefficient matrix and using Theorem 1.6.2. x1 + 2x2 + 3x3 = b1 x1 - x2 + x3 = b2 x1 + x2 = b3 (a) b1= - 1, b2 = 3, b3 = 4 (b) b1 = - 1, b2 = -1,...
-
Northwest Gift Shop, a retail business, started business on April 29, 2019. It keeps a $300 change fund in its cash register. The cash receipts for the period from April 29 to April 30, 2019, are...
-
A curve is given as y = x 1/x 2. a. Write this in the form y = A + x - 2 b. State the equations of the asymptotes. c. Sketch the curve, showing points of intersection with the coordinate axes.
-
True or False: A rotor that has been balanced down to the G specification is considered ready to ship.
-
Nordstrom, Inc. operates department stores in numerous states. Selected financial statement data for the year ending January 31, 2009, are shown on the next page. For the year, net credit sales were...
-
In this assignment, you have a 1-day classroom experience in which you need to help a group of engineers and software programmers learn to become project managers. After training, they will have to...
-
During 2020, your clients, Mr. and Mrs. Howell, owned the following investment assets: Investment Assets Date Acquired Purchase Price Brokers Commission Paid at Time of Purchase 300 shares of IBM...
-
Which business entity type allows for pass-through taxation and has restrictions on the number and type of shareholders?
-
Find the binomial probabilities in Problems 3-10. \(n=5, X=3, p=0.30\)
-
A manufacturer of water test kits knows that about \(0.1 \%\) of the test strips in the kits are defective. Write the binomial probability formula that would be used to determine the probability that...
-
The following problem appeared in an "Ask Marilyn" column, by Marilyn Vos Savant: There are five cars on display as prizes, and their five ignition keys are in a box. You get to pick one key out of...
-
You have five alternatives from which to choose. List your preferences for the alternatives from best to worst. I. Sure win of \(\$ 5\) and no chance of loss II. \(6.92 \%\) chance to win \(\$ 20\)...
-
Consider the following classroom activity. Suppose the floor consists of square tiles 9 in. on each side. The players will toss a circular disk onto the floor. If the disk comes to rest on the edge...
-
NB bank earns 1% on its assets and has a 20% tax rate. It earns 8% on loans, and 6% on investments. It pays 4% on-time deposits, and 3% on federal funds purchased. Demand deposits pay no interest....
-
How has the too-big-to-fail policy been limited in the FDICIA legislation? How might limiting the too-big-to-fail policy help reduce the risk of a future banking crisis?
-
Emily Jackson (Social Security number 765-12-4326) and James Stewart (Social Security number 466-74-9932) are partners in a partnership that owns and operates a barber shop. The partnership's first...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-7. Ivan sold the following securities during the year and received a Form 1099-B that...
-
Tom has a successful business with $100,000 of income in 2012. He purchases one new asset in 2012, a new machine which is 7-year MACRS property and costs $25,000. If you are Tom's tax advisor, how...
-
A football is thrown on a long pass. Compared to the balls initial vertical velocity, the vertical component of its velocity at the highest point is (a) greater, (b) less, (c) the same.
-
Which one of the following cannot be a true statement about an object: (a) It has zero velocity and a nonzero acceleration; (b) it has velocity in the x-direction and acceleration in the y-direction;...
-
Two linear vectors of magnitudes 3 and 4 are added. The magnitude of the resultant vector is (a) 1, (b) 7, (c) between 1 and
Study smarter with the SolutionInn App