Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java code about foolowing problem: Write a program that, given a date in 2009, determines the day of week on that date. Input

Write a java code about foolowing problem:

Write a program that, given a date in 2009, determines the day of week on that date.

Input

The first line contains two positive integers DD (day) and MM (month) separated by a space. The numbers will be a valid date in 2009.

Output

Output the day of the week on day DD of month MM in 2009. The output should be one of the words Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday.

Sample Input 1 Sample Output 1
1 1 
Thursday 
Sample Input 2 Sample Output 2
17 1 
Saturday 
Sample Input 3 Sample Output 3
25 9 
Friday 

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_2

Step: 3

blur-text-image_3

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

5. Discuss the role of the Web in career management.

Answered: 1 week ago