Answered step by step
Verified Expert Solution
Link Copied!

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 OOPimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

305 mg of C6H12O6 in 55.2 mL of solution whats the molarity

Answered: 1 week ago