Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ age calculation function I have written code to get user input for their birth day, month, and year (all ints). All of that gets

C++ age calculation function

I have written code to get user input for their birth day, month, and year (all ints). All of that gets put in a struct called Date which I initialize in main with Date input for the birth date and Date output for the desired date. therefore to reference them you would use input.day, input.month and input.year and so on using output instead of input. What I need now is a function to take these structs and calculate the users age based on their input. You can just call the function CalculateAge.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

5. What information would the team members need?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago