Today is <current date> example "monday" Tomorrow is <next day> "Tuesday" Previous day is <previous day> "Sunday" Enter the number of days to add in current day >user enters a number "3" Day after 3 days is "Thursday"
Today is <current date> example "monday"
Tomorrow is <next day> "Tuesday"
Previous day is <previous day> "Sunday"
Enter the number of days to add in current day
>user enters a number "3"
Day after 3 days is "Thursday"
I need these elements added to this code:
1. prompt for user input to enter a day - example user inputs monday
2. program returns the previous day, the next day, and the second next day - user entered monday - returns: "next day is tuesday", "the next day after this is wednesday", "previous day was sunday"
3. prompt for user to enter number of days to add to the above entered day and returns the day that would fall after that number - example - prompt - enter number of days - user inputs 3 - returns "your day entered was Monday (from above), three days from Monday is Thursday, the next day after this is Friday"
4. please add comments for all code and please review existing comments and add or edit as needed so that entire program has adequate comments to explain how everything works
12 years ago
Purchase the answer to view it

- day.java
- proof.png