Question
Write a Java program that asks the user for a date entered as 4 integers: dayNumber monthNumber date year . Where: dayNumber An integer from
Write a Java program that asks the user for a date entered as 4 integers: dayNumber monthNumber date year. Where:
dayNumber
An integer from 1-7, where 1 = Sunday, 2 = Monday, ..., 7 = Saturday
monthNumber
An integer from 1-12, where 1 = January, 2 = February, ..., 12 = December
date
An integer from 1-31 representing the date.
year
An integer representing the year.
Your prompt to the user should be:
Enter 4 integers representing dayNumber monthNumber date year:
You program will compute the proper dayName from the specified dayNumber and the proper monthName from the specified monthNumber. Your program will print out the specified date in the following format:
dayNumber monthNumber date year is dayName monthName date, year
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started