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...



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

Nov 25, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here