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 OOPJAVA OOP 4. Write a program that will take an integer numbers,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!