Answered step by step
Verified Expert Solution
Link Copied!

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:image text in transcribed

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: int

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions