Microsoft Word - Fall2022-HW1.docx 95712-Fall 2022 HW1 1 Problem Statement The Federal Trade Commission (FTC) is a government agency that is responsible for "protecting consumers and competition by...

1 answer below »
one pdf for the instruction, one txt file that should be imported to the code, four java method code, and one test case


Microsoft Word - Fall2022-HW1.docx 95712-Fall 2022 HW1 1 Problem Statement The Federal Trade Commission (FTC) is a government agency that is responsible for "protecting consumers and competition by preventing anticompetitive, deceptive, and unfair business practices through law enforcement, advocacy, and education without unduly burdening legitimate business activity."1 It conducts investigative cases against companies that engage in unlawful practices that harm consumers in any way. These cases are logged under Cases and Proceedings and are available for public review. You need to build a tool that can help analyze these FTC cases. To start with, Table 1 shows a sample of cases from the dataset. The data is in a tab-separated file named FTC-cases-TSV.txt. Important things to note in data: 1. Each case has a date, a title, a case type, and a case number. However, case type and case number may be missing for some cases. 2. The date is in yyyy-mm-dd format 3. Case type is given at the end of the Title within parentheses. The current data has Federal and Administrative as two case types 4. Case number is a string of some characters. Table 1: FTC Case Data Case date Title (case type) Case number 2021-07-01 Kuuhuub, Inc., et al., U.S. v. (Recolor Oy) (Federal) 1823184 2021-06-22 Flo Health, Inc. (Administrative) 192 3133 2021-05-07 Everalbum, Inc., In the Matter of (Administrative) 192 3172 2021-05-03 Support King, LLC (SpyFone.com), In the Matter of (Administrative) 192 3003 2021-04-29 Vivint Smart Home, Inc. (Federal) 192 3060 2020-05-20 Tapplock, Inc., In the Matter of (Administrative) 192 3011 2020-04-28 Facebook, Inc., In the Matter of (Administrative) 092 3184; 182 3109; C-4365 The first version of our tool - which we will call as CyberCop 1.0 - will be based on Character User Interface (CUI) and needs to do the following: 1. Search for cases reported against a company 2. Search for cases reported in a year 3. Search for a case number 4. Print case type summary 5. Print year-wise summary Please refer to sample scenarios at the end of this document. 1 https://www.ftc.gov/about-ftc 95712-Fall 2022 HW1 2 Solution Design The solution design has four classes. CyberCop • main() method is the app's entry point • showMenu() is to get user inputs • print…() methods are to print the outputs as shown in the sample scenarios at the end of this document. CCModel: • loadData()reads data from CyberCop.DATAFILE and stores it in fileData • loadCases() reads data from fileData, parses each row to create Case objects and stores them in cases array SearchEngine: • searchTitle(): takes searchString and cases array. Returns an array of Cases whose title contain the searchString. The search is case-insensitive • searchYear(): takes year as a String and cases array. Returns an array of Cases that were data falls in the year • searchCaseNumner: takes Figure 1: Class diagram caseNumber and cases array and return an array of Cases that contain the caseNumber in their caseNumber property. Case: • The constructor takes all four parameters as Strings and initializes its instance variables • The getYear() method is optional and it returns the year of the caseDate. More specifics are given in code files as comments. Design Constraint: Use of Collection classes (ArrayLists, LinkedLists, Sets, Maps, etc.) is not allowed in HW1 Instructions: 95712-Fall 2022 HW1 3 • Download the files from Canvas and store them in a project and a package as shown in Fig. 2. • Complete your code. • It is expected that you follow the design provided and do not add new classes, methods, or member variables. Making any design changes may impact test-cases and may also need rework for you in HW2/HW3. • Write your name and Andrew id as comments at the top in all your Java files. • You will test your program in two ways: Console output (refer sample outputs at the end of this document) and TestCyberCop.java. These two tests will get you 80% of the points. Other criteria applied to evaluate your program are: 1. Documentation (5%): Your code should be well-commented, i.e., neither Figure 2: Folder structure too many comments, nor too few. Yes, this requires a little bit of your judgment! Name your variables in a self-explanatory way. Write your name and Andrew id at the top in the comments in each class. Indent your code properly. (In Eclipse, press Ctrl-A to select all your code and then Ctrl-I to indent) 2. Code quality (5%): coding conventions, no unused variables/libraries, etc. Use your judgment to assess these criteria. 3. Code robustness (5%): Your program should not throw any errors while processing. You can safely assume that the user will not enter any garbage input. 4. Submission instructions (5%): Zip all your java files except test-file into AndrewId-hw1.zip. Do not submit any other folders, class files, test file, text files, and rest of your kitchen sink! Only last submission will be graded. Wrong files, incorrect package name, etc. may take away some points. NO LATE SUBMISSIONS PLEASE! If you are unable to submit on time, you lose all the points. Please avoid last minute submission as Canvas may decide to quit on you! Learn to trust technology only to the extent you should! Do not take that risk! I will not accept late submission. Good luck!! 95712-Fall 2021 HW1 4 Sample outputs Scenario 1: Menu option 1 - A company has multiple cases Scenario 2: Menu option 1 - A company with no reported case 95712-Fall 2021 HW1 5 Scenario 3: Menu option 2 - Several cases reported in a year 95712-Fall 2021 HW1 6 Scenario 4: Menu option 2 - No cases in a year Scenario 5: Menu option 3 - Case number found 95712-Fall 2021 HW1 7 Scenario 6: Menu option 3 - Case number not found Scenario 7: Menu option 4 95712-Fall 2021 HW1 8 Scenario 8: Menu option 5 2021-07-01Kuuhuub, Inc., et al., U.S. v. (Recolor Oy) (Federal)1823184 2021-06-22Flo Health, Inc. (Administrative)192 3133 2021-05-07Everalbum, Inc., In the Matter of (Administrative)192 3172 2021-05-03Support King, LLC (SpyFone.com), In the Matter of (Administrative)192 3003 2021-04-29Vivint Smart Home, Inc. (Federal)192 3060 2020-12-16SkyMed International, Inc., In the Matter of (Administrative)1923140 2020-12-15Ascension Data & Analytics, LLC, In the Matter of (Administrative)192 3126 2020-12-08AppFolio, Inc. (Federal)1923016 2020-11-30Midwest Recovery Systems, LLC (Federal)1923042 2020-11-09Zoom Video Communications, Inc., In the Matter of (Administrative)192 3167 2020-07-27MyLife.com, Inc. (Federal)182 3022 2020-07-13Ortho-Clinical Diagnostics, Inc., In the Matter of (Administrative)192 3050 2020-07-09NTT Global Data Centers Americas, Inc., In the Matter of (Administrative)182 3189 2020-07-06Miniclip, In the Matter of (Administrative)192 3129 2020-06-10Kohl's Department Stores, Inc. (Federal)182 3200 2020-06-04HyperBeard, Inc. (Federal)192 3109 2020-05-20Tapplock, Inc., In the Matter of (Administrative)192 3011 2020-04-28Facebook, Inc., In the Matter of (Administrative)092 3184; 182 3109; C-4365 2020-04-06Credit Bureau Center, LLC (formerly known as MyScore LLC) (Federal)162 3120; X170014 2020-03-23T&M Protection Resources, LLC, In the Matter of (Administrative)192 3092 2020-03-09BoostMyScore LLC (Federal)192 3059 2020-01-29Click Labs, Inc., In the Matter of (Administrative)192 3090 2020-01-29Global Data Vault, LLC, In the Matter of (Administrative)192 3093 2020-01-16Thru, Inc., In the Matter of (Administrative)182 3196 2020-01-16DCR Workforce, Inc., In the Matter of (Administrative)182 3188 2020-01-16LotaData, Inc., In the Matter of (Administrative)182 3194 2020-01-16EmpiriStat, In the Matter of (Administrative)182 3195 2020-01-16Trueface.ai, In the Matter of (Administrative)182 3193 2020-01-09Medable, Inc., In the Matter of (Administrative)182 3192 2020-01-07Mortgage Solutions FCS, Inc. (Federal)182 3199 2019-12-18Cambridge Analytica, LLC, In the Matter of (Administrative)182 3107 2019-12-18Aleksandr Kogan and Alexander Nix, In the Matter of (Administrative)182 3106; 182 3107 2019-12-17Unrollme Inc., In the Matter of (Administrative)172 3139 2019-12-03TDARX, Inc., In the Matter of (Administrative)192 3084 2019-12-03Incentive Services, Inc., In the Matter of (Administrative)192 3078 2019-11-12InfoTrax Systems, L.C. (Administrative)162 3130 2019-10-22Retina-X Studios, LLC, In the Matter of (Administrative)172 3118 2019-10-08LifeLock, Inc., a corporation (Federal)072 3069; X100023 2019-09-06LightYear Dealer Technologies, LLC, In the Matter of (Administrative)172 3051 2019-09-04Google LLC and YouTube, LLC (Federal)172 3083 2019-08-30LabMD, Inc. v. Federal Trade Commission (Federal)102 3099 2019-08-21SecurTest, Inc., In the Matter of (Administrative)182 3152 2019-08-14Jasjit Gotra (Alliance Security) (Federal)X140022 2019-07-31Equifax, Inc. (Federal)172 3203 2019-07-02D-Link (Federal)132 3157; X170030 2019-07-02James V. Grago, Jr. doing business as ClixSense.com, In the Matter of (Administrative)172 3003 2019-04-24Unixiz, Inc. doing business as i-Dressup.com (Federal)172 3002 2019-03-29Office Depot, Inc. (Federal)172 3023 2019-02-27Musical.ly, Inc. (Federal)172 3004 2019-01-29Roca Labs, Inc. (Federal)142 3255; X150061 2018-11-19mResource LLC (Loop Works LLC), In the Matter of (Administrative)182 3143 2018-11-19VenPath, Inc., In the Matter of (Administrative)182 3144 2018-11-19SmartStart Employment Screening, Inc., In the Matter of (Administrative)182 3154 2018-11-08ReadyTech Corporation, In the Matter of (Administrative)182 3100 2018-10-29Uber Technologies, Inc., In the Matter of (Administrative)152 3054; C-4662 2018-10-16RealPage, Inc. (Federal)152 3059 2018-10-11IDmission LLC, In the Matter of (Administrative)182 3150 2018-09-18Integrated Flight Solutions, et al. (Federal)172 3151 2018-09-18Katrina Moore (Federal)172 3111 2018-09-17Apartment Hunters, Inc. et al. (Wetakesection8.com) (Federal)172 3007 2018-09-11BLU Products and Samuel Ohev-Zion, In the Matter of (Administrative)172 3025 2018-06-22Emp
Answered 6 days AfterSep 25, 2022

Answer To: Microsoft Word - Fall2022-HW1.docx 95712-Fall 2022 HW1 1 Problem Statement The Federal Trade...

Aditi answered on Sep 26 2022
59 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here