subject

Day of the week. This program takes in three integers, representing day month year in that order, and should output the day of the week associated with the given date. The formula used to calculate the date is: day is the day of the month (1, 2, 3, etc.).
weekday (day + month + 1) = 24) - warport - warpers | Lantury ) +5 o century)
century is equal to (year / 100). For 2019, century would be 20. years part is the year within the century (year mod 100).
month is the month of the year, we typically associate the months as January. For 2019, year would be 19.
March = 3, etc. This is the case for this program for all cases except for January and February. Due to the way the formula works, specifically January and February must be entered into the above formula as months 13 and 14 of the previous year. This is to say that if you wanted to know which day of the week January 5, 1997 fell on, you would need month = 13, day = 5, year = 1996 when the values enter the formula. Your program should take them in as regular format 5 1 1997 and treat them differently once they have been read.
• The value weekday resulting from the equation will be a number [0,6] where Saturday = 0, Sunday = 1, etc.
The output of your program should be a single string name of the appropriate weekday. If the formula outputs 0, your output will be Saturday and so on.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
You know the right answer?
Day of the week. This program takes in three integers, representing day month year in that order, an...
Questions
Questions on the website: 13722367