CIS 212作业代做、Python编程语言作业调试、代写Python课程设计作业、代写Linux program作业代做数据库SQL|代做R语言编程

CIS 212 Project 2A-1-A Simple uniq in PythonDue at 10:00pm on Tuesday, 9 July 2019Write a python script suniq.py that conforms to the following synopsis:python3 suniq.py [OPTION] … [FILE]suniq filters adjacent matching lines from FILE (or standard input if a file is notspecified), writing to standard output. It must work exactly like the uniq Linux programfor the functionality they have in common.With no options, matching lines are merged to the first occurrence.suniq is to support the following options:-c prefix lines by the number of occurrences-d only print duplicate lines, one for each group-i ignore differences in case when comparing-u only print unique lines (lines that do not have any adjacent lines that match)Note that specifying both –u and –d as flags to suniq yields no output, since thenumber of lines that match those requirements is the null set. No error message is to beindicated, the program is simply to return with no output.If –c is specified, the count is to be written in a field 7 characters wide, followed by asingle space, followed by the line to be printed. You might want to review theformat() method on Python strings to see how you would do this.1 Starting filesIn Canvas, in Files/Projects, you will find a gzipped tar archive namedproject2Astart.tgz; this file contains the following files: input – a file that contains text. tscript – a bash script file that performs a number of tests of yoursuniq.py using input and test*.out; invoking ./tscriptwill execute all of the tests using your suniq.py. test*.out – the correct output files for the tests in tscript.CIS 212 Project 2A-2-2 Checking that your solution works correctlytscript takes zero or more arguments; if one or more arguments are specified,tscript will only perform those specific tests; if no arguments are specified, all of thetests are performed.The tests that tscript performs are:a Works correctly with no flags and no filename.b Works with –i flag and file specified as an argument.c Works with –d flag and file specified as an argument.d Works with –u flag and no filename.e Works with –ci flags and file specified as an argument.f Works with –cd flags and file specified as an argument.g Works with –cu flags and file specified as an argument.h Works with –du flags and file specified as an argument.i Works with –icd flags and file specified as an argument.j Works with –icu flags and file specified as an argument.k Works with –i –c -d flags and file specified as an argument.l Reports illegal flag on stderr and halts the program.For each test, tscript prints out “Starting test ”, where is one of {a, b, c, d, e, f, g, h, i, j, k, l}; it then printsa 1-line description of what it is testing; it then prints the actual command line that it isexecuting; finally, it prints “Stopping test ”.If there is any output between the actual command line and the Stopping line for anytest except test l, that test has failed.3 Submission1You will email your solutions electronically by attaching a gzipped tar archive2 to anemail addressed to [email protected] with the Subject line: Project 2A submission.Your TGZ archive should be named -project2A.tgz, where isyour “duckid”. It should contain your file suniq.py; it should also contain a file namedreport.txt; this file should contain your name, duckid, the names of any classmateswho helped you and the type of help they provided, and the current state of yoursolution.1 A 50% penalty will be assessed if you do not follow these submission instructions.2 See section 7 of Canvas/Files/Projects/P1Handout.pdf for instructions if you do not remember how tocreate a gzipped tar archive. Obviously, the filenames used for this project will be different.CIS 212 Project 2A-1-Grading RubricYour submission will be marked on a 50 point scale. Substantial emphasis is placedupon WORKING submissions, and you will note that a large fraction of the points arereserved for this aspect. It is to your advantage to ensure that whatever you submitcompiles, links, and runs correctly. The information returned to you will indicate thenumber of points awarded for the submission.You must be sure that your code works correctly on the virtual machine underVirtualBox, regardless of which platform you use for development and testing. Leaveenough time in your development to fully test on the virtual machine beforesubmission.The marking scheme is as follows:Points Description5 Your report – honestly describes the state of your submission�Your suniq.py passes test b.Your suniq.py passes test c.Your suniq.py passes test d.Your suniq.py passes test e.Your suniq.py passes test f.Your suniq.py passes test g.Your suniq.py passes test h.Your suniq.py passes test i.Your suniq.py passes test j.Your suniq.py passes test k.Your suniq.py passes test l.Appropriate test for __name__Matching logic disjoint from main()Appropriate function annotationsNote that: Your report needs to be honest. Stating that everything works and then findingthat it doesn’t is offensive. The 5 points associated with the report are probablythe easiest 5 points you will ever earn as long as you are honest.本团队核心人员组成主要包括BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:[email protected] 微信:codehelp QQ:99515681 或邮箱:[email protected] 微信:codehelp

你可能感兴趣的:(CIS 212作业代做、Python编程语言作业调试、代写Python课程设计作业、代写Linux program作业代做数据库SQL|代做R语言编程)