” 辅导32547留学生编程、 写作program编程University of Technology SydneyFaculty of Engineering and Information TechnologySubject: 32547 UNIX Systems Programming, Autumn 2020AssignmentDescriptionThis assignment is an individual programming assignment using Python. It addresses objectives 2and 3 as listed in the Subject Outline document.No limits apply to the number of lines of code of the program.Assignments are to be completed individually (this might be checked with the use of antiplagiarismtools such as Turnitin). You should not receive help in the preparation of thisassignment, nor ask anyone else to prepare it on your behalf in any way.MarksThe assignment corresponds to 30% of the total marks.SubmissionThe completed assignment is due by 5:00pm of Friday 12 June 2020.PLEASE PAY ATTENTION TO THE FOLLOWING SUBMISSION INSTRUCTIONS:1. Your Python program has to be submitted on Canvas, following the Assignments menu andthen the Assignment link by the due date. You can prepare your Python program anywhereyou like, but probably the easiest option is to develop it in a workspace that you can create inEd STEM.2. Please submit only your Python program, and nothing else (no data files).3. Late submissions will be deducted one mark per day late; more than seven days late, theassignment will receive zero. Special considerations for a late submission must be arranged inadvance with the Subject Coordinator. 辅导32547留学生作业、 写作program作业、Python编程Academic StandardsThe assignments in this Subject should be your own original work. Any code taken from a textbook,journal, the Internet or any other source should be acknowledged. For referencing, please use thestandard referencing conventions ( https://www.lib.uts.edu.au/help/referencing).Marking SchemeMark Range30 All requirements of the assignment are met. The submittedprogram can be executed by the lecturer as is and produces therequested output.24-29 The program works correctly with any valid file and for all options,but its execution experiences some minor problems.18-23 The program does not work as expected with one of the options.0-17 This range goes from no submission at all (0 marks) to asubmission which does not meet major requirements of theassignment.Examples: the program does not work As expected with two or moreoptions; the program generates unhandled errors; the program does not solve the assignment problem.The assignments will be marked within two weeks from the submission deadline or as soon aspossible.Important notes: Submission of this assignment is not compulsory to pass the subject; do not feel that youhave to submit it at all costs and perhaps be tempted to seek unauthorised assistance. There are no minimum requirements on the marks on this assignment to pass the subject.3Title: Printing usage report with PythonIn this assignment, you will write a Python program which parses a file containing information aboutthe printing usage of a Number of users and outputs summary information.These are the specifications for your Python program:1. It must be named printing_summary.py2. It should be invoked as:python printing_summary.py option printing_usage_fileThe program must check that argument printing_usage_file exists, is a file and is readable. Ifnot, it must print an error message to the standard output and exit. The specifications for theprinting_usage_file and option arguments are given below.3. File printing_usage_file can have any arbitrary name. It must be a file of text with thefollowing format:a. The file consists of an arbitrary number of lines (including, possibly, zero lines).b. Each line must contain three fields separated by commas.c. The three fields are: filename, size in bytes, username.d. The filename field is a string of characters of arbitrary (yet reasonably limited) length.Acceptable characters include: lower and upper case letters, digits, underscore, dot,space.e. The size in bytes field is an integer limited between 1 and 67,108,864.f. The username field is a string of characters of arbitrary (yet reasonably limited)length. Acceptable characters include: lower and upper case letters, digits, underscore,dot.The following example should be regarded as the reference specification for the format of fileprinting_usage_file:article.pdf,1550008,Massimo.piccardiUSP 32547 Assignment S2012.docx,36024,MarkThomasarticle.ps,10000000,massimo.piccardiarticle.pdf,205000,massimo.piccardiRecipes.html,239250,schmidt1974Important note: your program is not expected to verify that file printing_usage_file complies withthe above specifications. It will only be tested with compliant files.4. Your program can be invoked with option: -a. In this case, it must print each unique usernamein the order in which it first appears in the file:4Printing users:first user in appearance ordersecond user in appearance orderlast user in appearance orderExample with the example printing_usage_file given above:Command line:printing_summary.py -a printing_usage_fileOutput:Printing users:massimo.piccardiMarkThomasschmidt1974In the case in which file printing_usage_file is empty, your program must instead only print:No printing users5. Your program can be invoked with option: -f. In this case, it must only print the followingstring:Total number of files printed: number of files printedExample with the example printing_usage_file given above:Command line:printing_summary.py f printing_usage_fileOutput:Total number of files printed: 5In the case in which file printing_usage_file is empty, your program must print:Total number of files printed: 06. Your program can be invoked with option: -s. In this case, it must only print the followingstring:Total number Of bytes printed: number of bytes printedExample with the example printing_usage_file given above:Command line:5printing_summary.py s printing_usage_fileOutput:Total number of bytes printed: 12030282In the case in which file printing_usage_file is empty, your program must print:Total number of bytes printed: 07. Your program can be invoked with option: -u username. In this case, it must print:User username:Total number of files printed: number of files printed for userusernameTotal number of bytes printed: number of bytes printed for userusernameLargest file printed: number of bytes of the largest file printedfor user usernameExample with the Example printing_usage_file given above:Command line:printing_summary.py u massimo.piccardi printing_usage_fileOutput:User massimo.piccardi:Total number of files printed: 3Total number of bytes printed: 11755008Largest file printed: 10000000In the case in which file username is not present in printing_usage_file, your program mustprint:User username not found8. Your program can be invoked with option: -v. In this case, it must only print your name,surname, student ID and date of completion of your assignment, in a format of your choice.Please note that argument argument_file is still required.9. No options can be used simultaneously. This means that your program can only be invokedwith one of the options at a time.10. If your program is invoked with any other syntax than those specified above, it must print amessage of your choice to the standard output and exit.Examples of incorrect syntax:printing_summary.py -Z argument_file6printing_summary.py -uPlease be reminded that: This assignment must be your own work and you should not be helped by anyone toprepare it in any way; your assignment may be tested by anti-plagiarism software thatdetects superficial changes such as changing variable names, swapping lines of code and thelike. Understanding the assignment specifications is part of the assignment itself and no furtherinstructions will be provided; on the other hand, whatever is not constrained you canimplement it according to your own best judgment.如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。