Question: 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 Friday
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
