In part one we focus on reading from the input file and then printing the emails the console. The program should prompt for the name of the mailbox file to read and then print the emails to the...

In part one we focus on reading from the input file and then printing the emails the console. The program should prompt for the name of the mailbox file to read and then print the emails to the screen. Example Run: ``` Enter mailbox file to read: NYC5-lay-inbox.txt [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] ... ... ``` (more emails are present, but left out.) 1. Input: Mailbox File to read Output: emails to the screen Algorithm: ``` (todo write here) ``` write the code: 2. With the first part complete, now we focus on writing these emails to a file. The name of the file to write depends on the file read. simply replace `inbox` with `emails`. For example if you read in `NYC5-donohoe-inbox.txt` you will write the emails to `NYC5-donohoe-emails.txt`. The program should display how many emails were written to the file. Example Run: ``` Enter mailbox file to read: NYC5-williams-inbox.txt Wrote 65 emails to NYC5-williams-emails.txt ``` Input: Mailbox File to read Outputs: email file and number of emails to screen, email addresses themselves into the file Algorithm: ``` (todo write here) ``` write the code: 3. Did a significant amount of your code need to change from part 1 to part 2? Explain. 4. Devise an approach to remove duplicate emails from the output file. You don't have to write as code, just explain it. Python Language
Nov 17, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here