Changes

Jump to: navigation, search

OPS435 Assignment 1 for Section C

1,707 bytes removed, 00:43, 31 January 2021
preliminary work on milestones and overview
[[Category:OPS435-Python]][[Category:ebrauer]]
= Overview : du Improved =Programs such as screenfetch and top are used to generate <code>du</code> is a summary of the computer's current state. These types of programs are useful because they present a lot of information quickly, and can quickly suggest a possible avenue of investigation tool for the systems administrator.For this assignment you will create a "System Information" type program. This program will briefly present important information about the state of the computer system. 
The preliminary code should look like this:
<code><pre>
Hostname: NeoMexKernel Release: 5.4.0-48-genericUptime: up 1 week, 1 day, 17 hours, 14 minutes----------------------------------------/dev [ ] 0 %/ [============= ] 65 %/boot/efi [==== ] 18 %/home [=============== ] 77 %----------------------------------------Mem [======== ] 40 %Swap [= ] 3 %
</pre></code>
The first step will be to clone the Assignment 1 repository. The invite link will be provided to you by your professor. The repo will contain a check script, a README file, and the file where you will enter your code.
== The First Milestone (due October 19February 14) ==* Before For the first milestone you begin programming, it is important will have two functions to plan your algorithmcomplete. Therefore your first task * <code>call_du_sub</code> will be to complete take one argument and submit an algorithm documentreturn a list. This document should be named '''algorithm.txt'''. This file should be plaintext and located in your GitHub repositoryThe argument is a target directory. The document function will contain two sections: * A description of how you plan use <code>subprocess.Popen</code> to implement run the "percent_to_graph()" function. This explanation should be linecommand <b>du -by-lined l <target_directory></b>. You * <code>percent_to_graph</code> will be graded based on your attention to detailtake two arguments and return a string. * A description of how you plan to implement Test your functions with the required output overallPython interpreter. Consider the input you are working Use <code>import duim</code>, then call functions with, and consider the output you need to presenttest arguments. Break  == Second Milestone (due February 21) ==For the problem down into smaller problems, and consider any issues second milestone you might encounter. You will be graded on evidence that you have considered the task, but not on "getting it right the first time." * A brief description of the additional features you'd like two more functions to implementcomplete. * Once you have completed this file, add it to <code>create_dir_dict</code> will take your GitHub repository. Use list from <code>git add algorithm.txtcall_du_sub</code>, then and return a dictionary. * <code>git commit -m "added algorithm.txt"get_total</code> and will take two arguments: your list from <code>git pushcall_du_sub</code>and the target directory. It will return an integer that is the size of the target directory.
== The Assignment (due November 2March 7, 11:59pm) ==
* As stated before, your code will be inside the file "assignment1.py". Begin by completing the required functions, committing your changes as you go. Complete and test each function before moving to the next.
* When you have completed the task, make sure that all your changes have been committed and pushed to GitHub. <b>In addition, you will submit <code>assignment1.py</code> to Blackboard.</b>
 
== The Debrief (due November 24) ==
This part of the assignment will be completed under GitHub's "Issues" tab.
* Your professor will examine the code and post questions under "Issues". Answer the questions for full credit of your work.
* Create new issues to answer the following questions:
* Is your code portable, ie. have you tested on other Linux machines? How can we make programs portable?
* Why did you choose the additional features that you did?
* What challenges did you encounter during the assignment, and what resources did you use to solve your issues? (help from classmates, help from Stackoverflow, debuggers, etc.)
= Rubric =

Navigation menu