Reference no: EM132211321
Question :
Write a program that prompts the user to enter today's day of the week and the number of elapsing days, and output the future day of the week (after this many days elapses).
Below are some sample runs:
Please enter today's day: Monday
Please enter the number of elapsing days: 4
The future day is Friday.
Please enter today's day: Sunday
Please enter the number of elapsing days: 100
The future day is Tuesday.
Your program should expect today's day to be entered as a string from Sunday to Saturday (as opposed to a number), and output the future day as a string from Sunday to Saturday as well. Hint: Convert days from Sunday to Saturday to integers from 0 to 6. You will find the remainder operator useful.
The program needs to be written in java programming