Question: Write a Java program that calculates the day of the week (Sunday Saturday) for any date enter in a MM DD YYYY format. The program

Write a Java program that calculates the day of the week (Sunday Saturday) for any date enter in a MM DD YYYY format.

The program will run indefinitely until a 0 input is received.

For example

enter date (format MM DD YYYY) : 02 18 2020

it was Tuesday

enter date (format MM DD YYYY) : 12 25 2019

it was Wednesday

enter date (format MM DD YYYY) : 0 0 0

Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!