Changes

Jump to: navigation, search

OPS445 Online Assignment 1

No change in size, 16:58, 4 October 2021
Tests and Test results
== Tests and Test results ==
You must name your python 3 script as <code>assign1.py</code>. The script should accept two command line arguments, the first one is the date in "YYYYDD-MM-DDYYYY" format, and the second one is the number of day from the given date, a positive value indicates the number of days after the given date, and a negative value indicates the number of days before the given date. If the "YYYYDD-MM-DDYYYY" format is broken, your script should give an appropriate error message. Invalid months (>12) or invalid days of month(different for each month), should be detected and give appropriate error messages. For example:
* <b><code>python3 assign1.py 01-01-2019 1</code></b>, and the output should be<br />
02-01-2019

Navigation menu