Question: In this project you will write a program that determines the day of the week of a date on the Gregorian calendar, the calendar as
In this project you will write a program that determines the day of the week of a date on the Gregorian calendar, the calendar as we know it today. The Gregorian calendar was first introduced in October 1582 in Italy over time it replaced the Julian calendar. Learning objectives Using Conditional Statements Using Logical Connectors More on Writing Interactive Programs Checking whether a Date is Valid To simplify the program, we will consider all dates before 1583 as invalid dates. For three integers month, day and year, representing the input to the program, the following rules apply when determining whether they represent a valid date: 1. A date is also invalid if any one of these is true: (a) When the year is before 1583, the date is invalid. (b) When the month is not in the range 1-12, the date is invalid. (c) When the day is not in the range 1-31, the date is invalid. (d) When the month is September, April, June or November and day is 31, the date is invalid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
