Assignment2.pdf

Assignment 2 (100 points) Due Date: 6/4/2021 (11:59pm) In this assignment, you are going to write a mrjob program to count the occurrence based on the “V” tag and output the name attribute based on the “A” tag. The name attribute is the third tag of “A” and its pointer is from the second tag of “V”. See the following example A,1004,1,"Microsoft.com Search","/search" A,1057,1,"MS PowerPoint News","/powerpoint" A,1147,1,"Microsoft Financial Forum","/msft" A,1005,1,"Norway","/norge" C,"10001",10001 V,1004,1 C,"10004",10004 V,1005,1 C,"10005",10005 V,1147,1 V,1004,1 C,"10007",10007 C,"10008",10008 V,1004,1 C,"10009",10009 V,1057,1 V,1057,1 C,"10438",10438 V,1147,1

Ignore those data whose count is less than 2 "Microsoft.com Search" 3 "MS PowerPoint News" 2 "Microsoft Financial Forum" 2

For the entire data file, your expected output should look like "MS Office Support" 155 "NT Server Support" 462 "Australia" 136 "Brazil" 121 "Access Development" 215 "MS Access" 241 "MS Access Support" 105 "UK" 186 "Exchange Support" 86 "OEM" 22 "MS Proxy Server" 189 "OutLook" 237 "Office Reference" 157 "Games Support" 107

"Windows Hardware Development" 69 "Visual FoxPro" 97 "VBA Development" 65 "Microsoft Home" 14 "Product Catalog" 102 "Microsoft Press" 214 "Latin America Region" 56 "For Developers Only" 98 "Executive Computing" 120 "MS in Education" 291 "Microsoft OLE DB" 14 "Microsoft Home Essentials" 118 "MS Works" 36 "Hong Kong" 35 "France" 183 "Czech Republic" 16 "Slovakia" 11 "MS TeamManager" 47 "TechNet (World Wide Web Edition)" 59 "Mastering Series" 46 "Visual Source Safe" 36 "Canada" 128 "Internet Security Framework" 181

. . . To run on command prompt >> python assignment2.py input.txt > output.txt Submission Submit your python program to blackboard.