Changes

Jump to: navigation, search

OPS435 Python3 Assignment 2P

617 bytes removed, 22:28, 7 November 2019
Overview
[[Category:OPS435-Python]][[Category:rchan]]
= Overview =
When making back up of data files or log files, it is a very common practice You have successfully design an algorithm to name compute the backup directories and/date which is '''n''' day before or files based on the after a given date . You have also successfully implement your algorithm using the backup was done. In order to restore or locate Python language by identify the directory/file, we often functions that are need to find out perform the backup date from today's datecomputation.
The computational task for In this assignment is , you are going to design an re-implement the algorithm and write a you have for assignment 1 using python script according class. You are going to your algorithm create a new programmer-define object call Date with the appropriate functions. The script should take a date in the "YYYY/MM/DD" format data attributes and function attributes to support the number necessary manipulation of days before or after the given date as the command line arguments, calculate and output object needed to the standard output data channel the targeted date which is the number of day before or after the given date in the same formatimplement your algorithm for assignment 1.
== Coding Standard ==
Your python script must follow the following coding guide:
* [https://www.python.org/dev/peps/pep-0008/ PEP-8 -- Style Guide for writing Python Code]
== Command Line Argument to be supported ==
* Name your python script as a1_[student_id].py, where [student_id] is your Seneca email user name.
* Your python script must support two mandatory command line arguments : (1) any valid date in YYYY/MM/DD format, (2) number of days before or after the given date, and one option flag: "--step"
* If there are less or more than two data items provided at the command line, your script should display the correct usage message and exit.
= Class Requirements =
1,760
edits

Navigation menu