diff --git a/README.md b/README.md index 47c3b25dd2b1c96ee26c4b30d9100772af302ac8..719592f5031266a37e4694e19a30163047222d24 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,12 @@ - [License](#license) ## Description - -Morse code :: Worksheet(2 part 2)\ -This is a rep for only worksheet 2 part 2. Worksheet 2 part 1 can be found here [IOT - Worksheet 2 part 1](https://gitlab.uwe.ac.uk/jo2-holdsworth/iot-worksheet-2-part-1) +Worksheet(2 part 2) +-This worksheet explores using servers on the csct cloud and communicating via ham standards +**This is a rep for only worksheet 2 part 2.** +* [IOT - Worksheet 2 part 1 ](https://gitlab.uwe.ac.uk/jo2-holdsworth/iot-worksheet-2-part-1) can be found here +* [IOT - Worksheet 2 part 2 ](https://gitlab.uwe.ac.uk/jo2-holdsworth/iot-worksheet-2-part-2) **you are here** +* [IOT - Worksheet 3](https://gitlab.uwe.ac.uk/jo2-holdsworth/iot-worksheet-3) can be found here ### Task 1: Binary heap. diff --git a/binaryheap.py b/binaryheap.py index 1eb3b6e44d2d9fe17455a660283e322c9e5a6620..03838ca1545fe88fd956c05224b0223f88d13161 100644 --- a/binaryheap.py +++ b/binaryheap.py @@ -1,3 +1,11 @@ +# ============== +# File: binaryheap.py +# By: Jack Holdsworth - 20023933 +# Use: binary heap decoder +# Written on: Python 3.8 +# ============== + + def decode_bt(string): # a binary heap decode function without the use of OOP diff --git a/convert.py b/convert.py index 6542bc0432fe961fb2925b1c2e1d70f0a1b79755..861787384756f2551cc9d93073c382ac8d0bacd1 100644 --- a/convert.py +++ b/convert.py @@ -1,3 +1,10 @@ +# ============== +# File: convert.py +# By: Jack Holdsworth - 20023933 +# Use: As simple program to replace items in a string +# Written on: Python 3.8 +# ============== + tree = "-ETIANMSURWDKGOHVF*L*PJBXCYZQ**54*3*¿?2&*+****16=/***(*7***8*90*************_****\"**.********'**-********;!*)***¡*,****:****************$***********************************************************************************************************************" output = "" for item in tree: diff --git a/hamradio.py b/hamradio.py index 133cf0c659ccffa5e971dcd2b1759d029f7b3a2f..0472534c991245f7c913b9c80d481908161a376c 100644 --- a/hamradio.py +++ b/hamradio.py @@ -1,4 +1,9 @@ -# encode_ham(sender: str, receiver: str, msg:str) -> str +# ============== +# File: hamradio.py +# By: Jack Holdsworth - 20023933 +# Use: Task 2, a program to have ham radio conversations via morse +# Written on: Python 3.8 +# ============== import morse diff --git a/hamserver.py b/hamserver.py index 6b4118cbbae36d1b3d95bbd2f696042286461c82..8a1d53415b93d4bceb18132b69ef2233f00cecf3 100644 --- a/hamserver.py +++ b/hamserver.py @@ -1,3 +1,10 @@ +# ============== +# File: hamserver.py +# By: Jack Holdsworth - 20023933 +# Use: Task 3, have ham morse conversations via the server +# Written on: Python 3.8 +# ============== + import server import asyncio import hamradio diff --git a/morse.py b/morse.py index bcc2529dedb1b2d22bd97b0ca60670782bc974f2..1bde814997b5a9dc5dbfa05082f2f15d88b52d63 100644 --- a/morse.py +++ b/morse.py @@ -1,3 +1,10 @@ +# ============== +# File: morse.py +# By: Jack Holdsworth - 20023933 +# Use: A copy of morse from worksheet 2 part 1 +# Written on: Python 3.8 +# ============== + class node: def __init__(self, value, left=None, right=None): self.value = value # Contains itself value diff --git a/runtime.py b/runtime.py index b66993e38af4f13262c12d5a02976d99d54ec2c5..3e26849290cd836c997631d7ff8cff64d2e5976a 100644 --- a/runtime.py +++ b/runtime.py @@ -1,3 +1,10 @@ +# ============== +# File: runtime.py +# By: Jack Holdsworth - 20023933 +# Use: A simple program to test the run time of binaryheap +# Written on: Python 3.8 +# ============== + import time import binaryheap as morse start = time.time() diff --git a/server.py b/server.py index 4417835a274f6eb93434b306145b0191e1afbd1a..cd0354e247f304a6055b5121849e6bd27104e9d3 100644 --- a/server.py +++ b/server.py @@ -1,3 +1,10 @@ +# ============== +# File: server.py +# By: Jack Holdsworth - 20023933 +# Use: Task 3, a program to communicate with the server +# Written on: Python 3.8 +# ============== + import asyncio import websockets import json diff --git a/unititest.py b/unititest.py index 668af823e31403dfbdf0d8a9e2c759ae8eeb1a3a..e27c8ecc9a969f559997a2e87d02f051a4eec31e 100644 --- a/unititest.py +++ b/unititest.py @@ -1,3 +1,10 @@ +# ============== +# File: unittest.py +# By: Jack Holdsworth - 20023933 +# Use: A simple unittest file for worksheet2 part 2 +# Written on: Python 3.8 +# ============== + import unittest import binaryheap import hamradio