Question: JAVA SOURCE CODE PLZ AND THANKS Write a program that asks for what day of the month it is. (Example: 23) Then, using if /

JAVA SOURCE CODE PLZ AND THANKS JAVA SOURCE CODE PLZ AND THANKS Write a program that asks for

Write a program that asks for what day of the month it is. (Example: 23) Then, using if / else if statements, the program prints whether the day is Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday. To make this easy, we are going to use the following fomula. Assuming day = the number the user entered, convert it like this: int day_of_week = (day+1) % 7; Then, using if / else if statements, print one of the following messages. day_of_week What to print 1.0 Today is Monday 2.1 Today is Tuesday 3. 2 Today is Wednesday 4.3 Today is Thursday 5.4 Today is Friday 6.5 Today is Saturday 7. 6 Today is Sunday

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!