Write a C++ program called initial.cc that converses with the user,
as illustrated in the sample runs.
Here are several sample runs, where % is my prompt.
Your output must match exactly.
% g++ -o initial initial.cc % ./initial Your name? Jack I'll call you J. Your age? 55 You were born in 1958, more or less. % ./initial Your name? John R. Applin I'll call you JRA. Your age? 30 You were born in 1983, more or less. % ./initial Your name? surely you realize that I have no human name I'll call you syrtIhnhn. Your age? 100 You were born in 1913, more or less.
compute_year()
that returns, as a function value, an integer birth year,
given an integer age.
If you have any questions about the requirements, ask. In the real world, your programming tasks will almost always be vague and incompletely specified. Same here.
Turn in the file initial.cc. Do not turn in the executable file.
Follow the directions on the homework page.
Turn in someone else’s work.