Question: Please do these problems in C First: Write a program that uses one printf() call to print your first name and last name on one

Please do these problems in C

First: Write a program that uses one printf() call to print your first name and last name on one line, uses a second printf() call to print your first and last names on two separate lines, and uses a pair of printf() calls to print your first and last names on one line. The output should look like this (but using your name): Gustav Mahler <--First print statement Gustav <--Second print statement Mahler <--Still the second print statement Gustav Mahler <--Third and fourth print statements

Second: Write a program that converts your age in years to days and displays both values. At this point, dont worry about fractional years and leap years.

The leap year requirement is fairly self-explanatory. Make sure to account for leap years (years in which February has 29 days). Fractional years means that you should take into account the portion of the current year and your birth year that passed/will pass. For example, my birthday is September 18, so I would want to count the days from then until the end of the year in by birth year and between the current date and my birthday this year. You may hard-code the birthday into your code, but you should get the current date programmatically. Your code should work for any birthday specified. So, if I change your code to specify my own birthday your code should give me the right answer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!