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 other three methods described in parts a, b, and c of this exercise

Step by Step Solution

3.33 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Flowchart Pseudocode start Declarations num month num day num year output Enter the month day and ye... 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 Programming Logic & Design Questions!