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
Get step-by-step solutions from verified subject matter experts
