Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C: Taskl: Enter a valid date of birth and print it in different forms. Your program prompts the user to enter the date-of-birth as
In C:
Taskl: Enter a valid date of birth and print it in different forms. Your program prompts the user to enter the date-of-birth as date, month and year. Then the program prints the date-of-birth in 2 different ways. A sample scenario is shown in the box below. User inputs are bolded and underlined for convenience. Enter your date of birth (dd): 1 Enter month (mm): 2 Enter the year (yyyy): 1950 ******************************************************** You were born on the 1st day of February 1950 In words, you were born on day One in February of 1950 ******************************************************** Note 1.1: You must print an appropriate suffix when printing the date on linel for example, the suffix is st if the date is 1, nd" if the date is 2, rd if it is 3, "th" if it is 4, and so on. The date on line 2 is printed in words (e.g. One of date is 1, Two if date is 2 and so on). Note 1.2: the line of stars must be printed inside a function. It must print n line of stars, where n is an int value given as input to the function. You must use the following name and prototype for this function: Function Name: printLine60Stars Return Type: void Parameter: intStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started