Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me write this code in Java. Problem 1 Future Day of the Week (10 pts) Write a program that asks the user for
Please help me write this code in Java.
Problem 1 Future Day of the Week (10 pts)
Write a program that asks the user for a starting day of the week, then for the number of days into the future. Your program will calculate which day of the week in the future that will be.
Sample Output:
Tip:
A switch-case structure may come in handy.
run: What day are we starting on (1-Sunday, 2-Monday, etc.)? Enter the number of days into the future: 365 365 days into the future will be Monday Enter 1 to try again, or 0 to quit: 1 What day are we starting on (l-Sunday, 2-Monday, etc.2 3 Enter the number of days into the future:7 7 days into the future will be Tuesday Enter 1 to try again, or 0 to quit: 1 What day are we starting on (1-Sunday, 2-Monday, etc.)?7 Enter the nuber of days into the future: 1000000 1000000 days into the future will be Sunday Enter 1 to try again, or 0 to quit: 0 BUILD SUCCESSFUL (total time: 1 minute 28 seconds)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started