Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(In c+ please) Assignment: Proper Dates: There are many different date formats used in the world, such as day/month/year, year/month/day, and month/day/year. Dealing with these

(In c+ please) Assignment: Proper Dates: There are many different date formats used in the world, such as day/month/year, year/month/day, and month/day/year. Dealing with these is a common challenge for programmers working with international applications (like every website on the Internet). For this assignment, you will create a program that automates this process. You will ask the user to enter the year and day as a number (e.g. 9/2023) and the month as both a number and a String (e.g. 1, January). You will then print the following combinations of date formats: day/month/year year/month/day month/day/year Month (String) day, year day Month (String) year Examples of the program are shown below. Save your source code in a file called Assignment1C (with a file extension of .cpp, .cs or .java)

Sample Output:

Enter the day (number): 9

Enter the month (number): 1

Enter the month (String): January

Enter the year (number): 2023

Here are some ways to represent the date:

1/9/2023

2023/9/1

9/1/2023

January 9, 2023

9 January 2023

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions