Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA OOP 4. Write a program that will take an integer numbers, and print the day of the week depending on the number. To find
JAVA OOP
4. Write a program that will take an integer numbers, and print the day of the week depending on the number. To find the day of the week, you need to divide the number by 7 and find the remainder. The day will have the following value depending on the remainder. Remainder 0 1 2 3 4 Day of the Week Saturday Sunday Monday Tuesday Wednesday Thursday Friday 5 6 Sample Input 9 14 Expected Output Monday Saturday Explanation As 9%7 =2, the output is Monday As 14%7 =0, the output is Saturday according to the above table. As 27%7=6, the output is Friday according to the above table. 27 FridayStep 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