BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/6534923311644672/lesson/3a9db55134b59a835d50a083c868d92c?ref=outlook-calendar
SUMMARY:Homework Solution
DTSTART;TZID=America/Los_Angeles:20260502T190000
DTEND;TZID=America/Los_Angeles:20260502T200000
LOCATION:https://www.learndesk.us/class/6534923311644672/lesson/3a9db55134b59a835d50a083c868d92c?ref=outlook-calendar
DESCRIPTION: * Homework Solution:

Introducing While Loops:
Explore what the "while" statement below does:

var x = 0
while x < 10 {
    print("hi")
    x += 1
}
print(x)

- Now write a function daysPastThisYear that takes the current date as the name of the current month and the current day, e.g., daysPastThisYear(month: "May", day: 12), and returns how many days have past since the beginning of the year. Use a "while" loop. Ignore leap years. You may user the following list and dictionary defined:
let monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
let monthDays = ["January": 31, "February": 29, "March": 31, "April": 30, "May": 31, "June": 30, "July": 31, "August": 31, "September": 30, "October": 31, "November": 30, "December": 31]

E.g.
print(daysPastThisYear(month: "January", day: 12))
// prints 12
print(daysPastThisYear(month: "February", day: 2))
// prints 33

let monthNames = ["January", "February",...

https://www.learndesk.us/class/6534923311644672/lesson/3a9db55134b59a835d50a083c868d92c?ref=outlook-calendar
STATUS:CONFIRMED
SEQUENCE:3
BEGIN:VALARM
TRIGGER:-PT10M
DESCRIPTION:Class Reminder
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR