Create the logic for a program that prompts the user

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

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top