Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi, I am having trouble producing a program in C language on nano for my assignment. If someone could please help it would be appreciated.
Hi, I am having trouble producing a program in C language on nano for my assignment. If someone could please help it would be appreciated. Thank you!
3.0 Extras By completely the above task correctly, you have the potential to earn up to 90% of the grade for this assignment. By going beyond the material given and completely the extra section, you have the potential of earning another 10%. In taskl, you must validate the date, month and year entries. If the user enters an invalid date, month or year, they are prompted to enter a value again and this repeats untila valid value is entered. Note that for this assignment: o date between 1 and 31 (both inclusive) for months Jan, Mar. May, July, Aug. Oct and Dec, any date between 1 and 30 (both inclusive) for months Apr. Jun. Sop and Nov and any date between 1 and 29 (both inclusive) for Feb is considered vali o Note that if the date entered is 29, and the year is not a leap year. Your code must prompt the user with a message and repeat the processes for de month and year). month between 1 and 12 (both inclusive) is considered valid and o year between 1950 and 2000 (both inclusive) is considered valid. The example in the box below shows how the user is repeatedly prompted to enter Enter your date of birth (dd): Enter month (mm): 2 Enter the year (yyyy): 2001 Enter the year (yyyy): 1949 Enter the year (yyyy): 1950 You were born on the 1st day of February 1950 in words, you were born on day One in Februar ****** ** 4.0 List of "Do Notis not use Global Variable Using global vanables wi Do not use GOTO statement Using Gone 5.0 Submission Instructions Submat sale file containing upload your life to the Required concepts: nested-ut. switch loops, nested loops and functions (basic). 1.0 The Task There are 2 main tasks in this assienment Enter a valid date ol birth and print it in dierent foms. Your program prompts the user to enter the date of birth as date month and year Then the program prins the date of birth in a different way Kampia scenar Shown in the box below. Uber inputs are bolded and underlined for convenience. 1 Enter your date of birth (dd) Enter month (mm)2 Enter the year tyyyy) 1950 You were born on the 1st day of February 1950 words.vul were born on day. One in February MONT 1950 kollOvale su i whaw PIANTE Bull H' if ill data is, I tall if the rall Is ll IT IN | RET on line printed on One date .TW TTER SERIES Note 1.2: the line of stars must be printed inside function point Marshere N O N OM MESTERN on and prototype for this function W OLLE BE LE DELSE G GGGStep 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