Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Introduction Your assignment is to write a Mayan date calculator. The input will be provided through command line arguments. There will be three operations,

image text in transcribed
image text in transcribed
image text in transcribed
1 Introduction Your assignment is to write a Mayan date calculator. The input will be provided through command line arguments. There will be three operations, with each operation specified as the first command line argument and different operands as the remaining command-line arguments. You will be designing your own classes for Mayan dates. 2 Program Specification Your Mayan date calculator will accept input through command-line arguments. There will be five operations, with each operation specified as the first command-line argument and different operands as the remaining command-line arguments. python mayancalc.py mtd python mayancalc.py m-d python mayancalc.py m-m The first operation m+d takes a Mayan date and a number of days. The operation adds the number of days to the Mayan date to produce a Mayan date as output. The second operation m-d subtracts the number of days from the Mayan date to produce a Mayan date as output. The third operation m-m calculates the number of days between two Mayan dates. 3 Mayan Dates The Mayans used a dating system where one day was called a "k'in". Twenty k'in was called a "winal, and so on. The following table shows the different Mayan time units in the Long Count Mayan calendar. Please see the Wikipedia entry for "Maya Calendar" for more information, if you desire You may not need the information in the Days column

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions