Question: 1.e) Still in the same main.c and using the given input birthday and the current date information, write a function that will determine how many
1.e) Still in the same main.c and using the given input birthday and the current date information, write a function that will determine how many years old the person is and print that. You should also return the age from the function to the main function. You will need to pass in all the data you need as arguments for the function. Call the function from the main routine to determine age and print. Remember in your logic to account for whether the birthday has occurred in the current year or not. Take one screenshot of the lines of code that you add and take a 2nd screenshot of your output. Your lines of code should be added after the code you added for part 2.d. Rubric: (6 pts) Correct C code to find age, given the input birthday, on the current day (in 1st screenshot) (3 pts) Correct C code to print the age info (In Ist screenshot) (2 pts) Second screenshot shows existing output plus new output below it. (1 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
