Question: Create the logic for a program that prompts the user for numeric values for a month, day, and year. Then pass the three variables to
Create the logic for a program that prompts the user for numeric values for a month, day, and year. Then pass the three variables to the following methods: a. A method that displays the date with dashes in month-day-year order, as it is often represented in the United States-for example, 6-24-2015 b. A method that displays the date with dashes in day-month-year order, as it is often represented in the United Kingdom-for example, 24-6-2015 c. A method that displays the date with dashes in year-month-day order, as it is represented in the International Standard-for example, 2015-6-24 d. A method that prompts the user for the desired format ("US", "UK", or "IS") and then passes the three values to one of the methods described in parts a, b, and c of this exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
