Open main menu

CDOT Wiki β

Changes

OPS445 Online Assignment 2

No change in size, 00:15, 22 March 2022
m
The First Milestone (due November 21)
The repo will contain a check script, a README file, and the file where you will enter your code.
== The First Milestone (due November 21April 1st) ==For the first milestone , you will have two functions to complete.* <code>call_du_sub</code> will take one argument and return a list. The argument is a target directory. The function will use <code>subprocess.Popen</code> to run the command <b>du -d l 1 <target_directory></b>.
* <code>percent_to_graph</code> will take two arguments and return a string.
<br> or <br> [[File:Scaling-formula-min0.png|250px]]
In this equation, ``x`` refers to your input value percent , and ``y`` will refer to the number of symbols to print. The max of percent is 100 and the min of percent is 0.
Be sure that you are rounding to an integer, and then print that number of symbols to represent the percentage. The number of spaces that you print will be the inverse.
572
edits