No description
This repository has been archived on 2026-02-01. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2023-07-04 21:13:36 -05:00
.idea Final Commit 3.0 2023-06-18 20:45:28 -05:00
static Fifteenth Commit 2023-06-25 21:05:36 -05:00
.gitignore second commit 2023-04-19 23:29:04 -05:00
__main__.py Final Commit 3.0 2023-06-18 20:45:28 -05:00
data.py Final Commit 3.0 2023-06-18 20:45:28 -05:00
HashTable.py Forgot to correct the address of package 9 2023-07-04 21:13:36 -05:00
main.py Forgot to correct the address of package 9 2023-07-04 21:13:36 -05:00
Package.py Final Code Commit 2023-06-13 02:13:03 -05:00
README.md Fifteenth Commit 2023-06-25 21:05:36 -05:00
run.py Final Code Commit 2023-06-13 02:13:03 -05:00
Truck.py Final Code Commit 2023-06-13 02:13:03 -05:00

Getting Started

In order to run this program on Linux: python WGUPS-SDS --help

In order to run this program on Windows: python.exe WGUPS-SDS --help

Passing in the --help flag will print out a list of optional arguments that can be passed into this script to along with a short description on how to use the flags.

Running the program with no Arguments

Running the program with no arguments will print all packages out to the console along with the delivery time.

Passing in the --time Argument

If a time is entered with no other arguments, then all packages will be printed to the console just as in the scenario that no arguments were passed in at all, except the delivery status of each package is printed at the time specified rather than printing when they were delivered. Enter the time in 24-hour format: HH:MM.

Passing in the --package-ids Argument

This argument takes a list of one or more space delimited integers (i.e. 1 2 3 4 5) and it displays package information only for those packages as well as the time that each package was delivered.

Passing in the --time argument with the --package-ids argument

If a time argument is entered along with one or more package ids, then it displays the status of each package at the time specified rather than printing when they were delivered.

Passing in the --print-distance-traveled Argument

Regardless of other options passed in (or lack thereof), this argument will append the total distance traveled by each truck as well as their combined total distance to the end of the output.

Running the main.py File

Do not execute the main.py file. With this program, you do not execute any file directly; rather you pass in the project's root directory as an argument to the Python interpreter installed on your system. It will automatically execute the correct files in the correct order as needed.