Question: Please help with ops 445 Assignment 2. Image is below For the first milestone, you will have two functions to complete. . call_du_sub will take

Please help with ops 445 Assignment 2. Image is below

For the first milestone, you will have two functions to complete. . call_du_sub will take one argument and return a list. The argument is a target directory. The function will use subprocess . Popen to run the command du -d 1 . . percent_to_graph will take two arguments and return a string. In order to complete percent_to_graph ( ) , it's helpful to know the equation for converting a number from one scale to another. yout - ymin Xin - Xmin ymax - ymin Xmax - Xmin or yout Xin ymax where min=0 Xmax 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. Test your functions with the Python interpreter. Use python3 , then: import duim duim. percent_to_graph(50, 10)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!