Write a program that will ask the user to enter Date of Birth (DOB) and current date as input. Program will compute and display the user age in years, months and days on the screen. (For simplicity assume each month has 30 days). (E.g. if DOB = 25 - 09 - 1990 , Current Date = 04 – 03 - 2019 , User Age will be 28 years, 5 months and 9 days )

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 13E
icon
Related questions
Question
100%
Write a c program of the attachment attached below
Write a program that will ask the user to enter Date of Birth (DOB) and current date
as input. Program will compute and display the user age in years, months and days
on the screen. (For simplicity assume each month has 30 days).
(E.g. if DOB = 25 - 09 - 1990 , Current Date = 04 - 03 - 2019 , User Age will be 28
years, 5 months and 9 days)
Transcribed Image Text:Write a program that will ask the user to enter Date of Birth (DOB) and current date as input. Program will compute and display the user age in years, months and days on the screen. (For simplicity assume each month has 30 days). (E.g. if DOB = 25 - 09 - 1990 , Current Date = 04 - 03 - 2019 , User Age will be 28 years, 5 months and 9 days)
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Troubleshooting
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr