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 /
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
Get step-by-step solutions from verified subject matter experts
