Question
Using python, modify the PrintCalendar.py program to work with dates beginning in 1492. Using the Wikipedia article (https://en.wikipedia.org/wiki/Voyages_of_Christopher_Columbus), print a calendar showing the start of
Using python, modify the PrintCalendar.py program to work with dates beginning in 1492. Using the Wikipedia article (https://en.wikipedia.org/wiki/Voyages_of_Christopher_Columbus), print a calendar showing the start of his first voyage. It would be best to use a list for the names of the months.
Here is what I have so far:
def readInput(): year = int(input("Gimme year yyyy")) month = int(input("Month? mm ")) return(year, month) def printMonth(month, year): printMonthTitle(month, year)
def printMonthTitle(month, year): monthName = getMonthName(month) print ("--------", monthName, " ", year, "-------------") print (" Sun Mon Tue Wed Thurs Fri Sat")
def getMonthName(month): months = ["January","February","March","April","May","June","July","August","September","October","November","December"] return( months[month-1])
def getStartDay(): pass def getNumDays(): pass
def printMonthBody(month, year): print ("month body", month, year) getStartDay() getNumDays()
def Main(): year, month = readInput() printMonth(month, year) printMonthBody(month, year)
#********************* Main()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started