Question: in java . . . . - Declare three integer variables, all initialized to 0, and respectively named dayOfTheWeek, dayOfTheMonth. and firstDayOfTheMonth. Remember to comment

 in java . . . . - Declare three integer variables,
in java

. . . . - Declare three integer variables, all initialized to 0, and respectively named dayOfTheWeek, dayOfTheMonth. and firstDayOfTheMonth. Remember to comment each based on its role (see below for details). 3 points Declare & initialize a Scanner variable named s. 1 point Display the following message on the screen "Please enter an integer representing the date in the current month: 1 point Read an int value from the user and store it in variable dayOfTheMonth. 1 point Decrement dayOfTheMonth by 1 to represent the fact that our formula will assume that we numbers days in a month starting at O instead of 1. 1 point Display the following message on the screen "What was the first day of the month? Enter O for Monday, 1 for Tuesday.... 1 point Read an int value from the user and store it in variable firstDayOfTheMonth. 1 point Increment dayOfTheMonth by firstDayOfTheMonth. 1 point Store in the variable dayOfTheWeek the result of computing the modulo of the contents of dayOfTheMonth by 7.1 point Display the following message on the screen "Today is". Make sure that the next information that will be displayed will be on the same line. 1 point Perform the following conditional actions: 3 points . Test if dayOfTheWeek is 0. if it is, display "Monday". Test if dayOfTheWeek is 1. if it is, display "Tuesday". Test if dayOfTheWeek is 2, if it is, display "Wednesday". Test if dayOfTheWeek is 3, if it is, display "Thursday". Test if dayOfTheWeek is 4. if it is, display "Friday". Test if dayOfTheWeek is 5, if it is, display "Saturday" Test if dayOfTheWeek is 6, if it is, display "Sunday: . 0 Dlearn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This appears to be a Java programming task where you need to follow the steps outlined in the instructions to create a program Heres a stepbystep breakdown of how you could write this Java program Cod... View full answer

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!