Changes

Jump to: navigation, search

OPS435 Assignment 1 for Section C

72 bytes added, 14:43, 19 February 2021
Second Milestone (due February 21)
In order to complete <code>percent_to_graph()</code>, it's helpful to know the equation for converting a number from one scale to another.
(''y''<sub>out</sub> [[File:Scaling- ''y''<sub>min</sub>) / (''y''<sub>max</sub> - ''y''<sub>min</sub>) = (''x''<sub>in</sub> - ''x''<sub>min</sub>) / (''x''<sub>max</sub> - ''x''<sub>min</sub>)formula.png]]
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.
duim.percent_to_graph(50, 10)
Test To test with more values, or use the check script, run the following: <code>python3 checkA1.py -f -v TestPercent</code>
== Second Milestone (due February 21) ==
* <code>create_dir_dict</code> will take your list from <code>call_du_sub</code> and return a dictionary.
** Every item in your list should create a key in your dictionary.
** Your dictionary values should be a number of bytes.  For example: <code>{'/usr/lib/local': 33400}</code> ** Again, test using your Python interpreteror the check scriptTo run the check script, enter the following: <code>python checkA1.py -f -v TestDirDict</code>
== Minimum Viable Product ==

Navigation menu