•     Directory Program (A): Directory Structure & File Management:

 

Instructions –     (all paths that are used in the code should be relative paths; do not use absolute paths; absolute paths refer to the root directory such as c:)

Create a python program to build a directory structure and do some file management. Use the following links to help you with your code:

https://www.geeksforgeeks.org/create-a-directory-in-python/

 (Links to an external site.)

https://www.geeksforgeeks.org/delete-a-directory-or-file-using-python/

Include comments at the beginning of the program explaining the python program’s purpose, AND these comments should not display on the screen when the python program executes. The comments should also include your name.

* Then, use Print function to display the python program’s name on the screen.

Once the directory structure is completed, display the list of directories under the root directory on the screen followed by a pause for the user. Use your name rather than “PROJECT_MY_NAME”;

Then, the python program should create a text file that has your full name as its content and your initials as its filename. This file should be stored in the directory named “RTY”.

 

Then, the python program should make a copy of this file and store it in the directory named “ASD”.  

 

Move the file with your initials from directory “ZXC” to the directory named “ASD”.

Delete the directories named “UIO” and “JKL”; delete the file with your initials.

 

Then, show the tree diagram for the entire project again on the screen with a pause for the user.

 

      •     Payroll Program (B): Calculate Pay:

 

Instructions –

 

Create a python program to calculate a gross pay:  

 

When the python program executes it should initially clear the screen.

 

Include comments at the beginning of the program explaining the python program’s purpose, AND these comments should not display on the screen when the python program executes. The comments should also include your name.

               

The program should request the user’s hours worked, and repeat this request until the user provides a value for hours that is <= 40. (No one is working overtime.)

 

The program should then request the user’s pay rate, and repeat this request until the user provides a value for pay rate that is <= 20. (No one is earning more than $20.00 per hour.)

 

Determine the user’s gross pay, and show the user’s pay on the screen with a pause for the user..

                

Once the above works, add commands that will allow the user to repeat the calculation process as many times as the user desires. Display a blank line between the calculations along with a pause.