Question: code in java Suggested Logic: ? ( ( ) ) Display a Title Get the month from the user Validate the month Get the day
code in java Suggested Logic:
Display a Title
Get the month from the user
Validate the month
Get the day from the user
Validate the day
Get the year from the user
Calculate the day of the week
Convert M month to the correct value and changing the year is necessary
Convert the year to C and D
After setting up the values for M K C and D use Java operators to apply the formula
Get the value of G
Display the day of the week using a switch statement:
G is the day of the week where:
Sunday Monday
Tuesday
Wednesday
Thursday
Friday
Saturday Any other value: Display an error message.
Display the number of entries made by the user
Testing:
Test your final program for these values plus others including your own birth date:
Here is a sample output of this project:Enter month or to exit: Enter year: Enter month or to exit: Enter year: Enter month or to exit:
Number of entries
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
