128k views
5 votes
Ada Lovelace Day, celebrating Ada, Countess of Lovelace as the first computer programmer, is traditionally celebrated on the second Tuesday of October each year.

write a function that takes a year in the gregorian calendar as an integer and returns the day of October on which Ada Lovelace day falls, also as an integer. for example, given 2018 you should return 9 (since the 9th of October is the second Tuesday in October.



Your function does not have to account for non-gregorian calendars or null years.



Can you please help me with this in PYTHON. Thanks



def ada(year):

User Monise
by
3.3k points

1 Answer

1 vote

Ada Lovelace Day, celebrating Ada, Countess of Lovelace as the first computer programmer, is traditionally celebrated on the second Tuesday of October each year is given below

Step-by-step explanation:

1.The second Tuesday of every October marks Ada Lovelace Day, a day founded in 2009 by technologist Suw Charman-Anderson, to celebrate the achievements of women in Stem careers (science, technology, engineering and mathematics), and was created in memory of one in particular: Ada Lovelace, the first computer programmer.

2.Ada Lovelace: The First Computer Programmer. Ada Lovelace has been called the world's first computer programmer. ... By 1834 he had moved on to design his Analytical Engine, the first general purpose computer, which used punch cards for input and output. This machine also lacked financing and was never built.

3.Born two centuries ago, Ada Lovelace was a pioneer of computing science. She took part in writing the first published program and was a computing visionary, recognizing for the first time that computers could do much more than just calculations.

4.Through Babbage, Ada began studying advanced mathematics with University of London professor Augustus de Morgan. Ada was fascinated by Babbage's ideas. Known as the father of the computer, he invented the difference engine, which was meant to perform mathematical calculations.

5.It's Ada Lovelace Day today which means it is a time to celebrate the achievements of women working in the fields of science, technology, engineering and mathematics (STEM). Now in its eighth year, the annual celebration was founded by journalist and software activist Suw Charman-Anderson.

User Sunyatasattva
by
3.6k points