Skip to content

EthanChappel/Software-Engineering-Graduate-Project

Repository files navigation

All projects require Python 3 to run.

String and words

Get a count of all words in a text file, or create a copy with a word replaced.

Functionality

Get word count of text file.

python3 string_and_words.py -c <text file>

Replace words and save as a new text file.

python3 string_and_words.py -r <old word> <new word> <text file> <new text file>

Get lines containing a word

python3 string_and_words.py -g <word> <text file>

Date & Time Transformation

Convert a date time to another timezone. Optionally, account for user-defined daylight savings start and end times.

Functionality

All dates are in the ISO 8601 format.

Print date time with day of week.

python3 date_time_transformation.py <date and time>

Transform to another timezone.

python3 date_time_transformation.py <date and time> <new UTC offset>

Example:

> python3 date_time_transformation.py 2000-01-01T00:00:00+0000 -6
1999-12-31T18:00:00-0600 Friday

Transform to another timezone and set daylight savings time start & end.

python3 date_time_transformation.py <date and time> <new UTC offset> <dst start> <dst end>

Big Number Computation

Use Python's built in big integer calculations to perform math on large numbers, including calculations with a decimal place in one number.

Functionality

Add, subtract, or multiply two numbers

python3 big_number_computation.py <number 1> <operator> <number 2>

Example

> python3 big_number_computation.py 100000000000000000000000000000 - 200000000000000000000000000000.1
-99999999999999999999999999999.9

Running tests

python3 tests.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages