Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python: Problem #3: NYU Calendar For this assignment you will be writing a program that will be able to tell a user whether s/he

In Python:image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Problem #3: NYU Calendar For this assignment you will be writing a program that will be able to tell a user whether s/he has the day off for any given day during the current semester (Fall 2018). To get started, open up the official Fall 2018 academic calendar by visiting this link: https://cs.nyu.edu/webapps/Undergraduate/calendar. These are the dates that you should account for during this academic term: Beginning of term: Fall Break: Legislative Day Thanksgiving: Last day of classes: Reading days: Final exams: Tuesday, September 4, 2018 Monday, October 8, 2018 Tuesday, October 9, 2018 (classes meet on a Monday schedule) Wednesday, November 21, 2018- Friday, November 23, 2018 Friday, December 14, 2018 Saturday, December, 15 2018 Sunday, December 16, 2018 Monday, December 17, 2018 Friday, December 21, 2018 Here is how it should work: . The user should be prompted to enter a number for the month and day of a potential date (For example, entering "2" for the month and 14" for the day would represent February 14 2018) . You can always assume that the year will be 2018 The program will tell the user if school is not in session and tell the user why. For example: October 8, 2018 is Fall Break. This is a school holiday at NYU lf the day selected is not a holiday, the program should print out a message such as: September 8 is not a school holiday at NYU. .Do not worry about weekends. You can report that NYU is open if the user enters a weekend date. Your program should also handle dates that come before or after the semester. For example: August 10, 2018 is before the Fall 2018 term December 30, 2018 is after the Fall 2018 term. . Your program should also handle invalid dates. For example: Enter a month: 13 Enter a day: 7 That's not a valid date! Enter a month: 2 Enter a day: 30 That's not a valid date! Problem #3: NYU Calendar For this assignment you will be writing a program that will be able to tell a user whether s/he has the day off for any given day during the current semester (Fall 2018). To get started, open up the official Fall 2018 academic calendar by visiting this link: https://cs.nyu.edu/webapps/Undergraduate/calendar. These are the dates that you should account for during this academic term: Beginning of term: Fall Break: Legislative Day Thanksgiving: Last day of classes: Reading days: Final exams: Tuesday, September 4, 2018 Monday, October 8, 2018 Tuesday, October 9, 2018 (classes meet on a Monday schedule) Wednesday, November 21, 2018- Friday, November 23, 2018 Friday, December 14, 2018 Saturday, December, 15 2018 Sunday, December 16, 2018 Monday, December 17, 2018 Friday, December 21, 2018 Here is how it should work: . The user should be prompted to enter a number for the month and day of a potential date (For example, entering "2" for the month and 14" for the day would represent February 14 2018) . You can always assume that the year will be 2018 The program will tell the user if school is not in session and tell the user why. For example: October 8, 2018 is Fall Break. This is a school holiday at NYU lf the day selected is not a holiday, the program should print out a message such as: September 8 is not a school holiday at NYU. .Do not worry about weekends. You can report that NYU is open if the user enters a weekend date. Your program should also handle dates that come before or after the semester. For example: August 10, 2018 is before the Fall 2018 term December 30, 2018 is after the Fall 2018 term. . Your program should also handle invalid dates. For example: Enter a month: 13 Enter a day: 7 That's not a valid date! Enter a month: 2 Enter a day: 30 That's not a valid date

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions