Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C, write a program to calculate what year someone will turn a specific age. Must use a function, and a #defined variable set to
Using C, write a program to calculate what year someone will turn a specific age. Must use a function, and a #defined variable set to a target age. Say the target age is 70, your program will ask the user what their birth year is then calculate (using a function) and output the year they will be 70. Change the target age to 94, and compile and run the program again. Main function will handle all the input and output, the function (you define, not the main) will do the calculation accepting input of the birth year and returning the target year.
Step 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