subject
Engineering, 12.03.2020 05:23 madeleine43

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):

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
question
Engineering, 06.07.2019 03:20
Steam at a pressure of 100 kpa and a quality of 50% initially fills a rigid vessel having a volume of 0.5 m^3. the steam is then heated, causing the pressure in the vessel to rise to 150 kpa. determine: i. the mass of the steam in the vessel. ii. the temperature and quality of the steam after the heating process. ii the mass of the vapour, mg and liquid, m in the vessel after the heating process. if the steam in the vessel is now further heated, what would the pressure and temperature in the vessel be when all steam has turned into saturated vapour? b. sketch the processes in part (a) and part (b) on p-v and t-v diagrams, indicating clearly the temperatures, pressures and the paths. c. (0.59kg, 111.4°c, 73%, 0.4307kg, 0.1 593kg, 2.11 bar, 121.84°c)
Answers: 1
question
Engineering, 06.07.2019 06:10
Aparallel helical gearset consists of a 19-tooth pinion driving a 57-tooth gear. the pinion has a left-hand helix angle of 30, a normal pressure angle of 20, and a normal module of 2.5 mm. find: (a) the normal, transverse, and axial circular pitches (b) the transverse diametral pitch and the transverse pressure angle (c) the addendum, dedendum, and pitch diameter of each gear
Answers: 1
You know the right answer?
Ada Lovelace Day, celebrating Ada, Countess of Lovelace as the first computer programmer, is traditi...
Questions
question
Mathematics, 26.03.2021 19:00
question
Mathematics, 26.03.2021 19:00
question
Mathematics, 26.03.2021 19:00
question
Mathematics, 26.03.2021 19:00
Questions on the website: 13722362