Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help making this program. I'm having trouble on how to correctly calculate the year and month for the full retirement age.Here is an

I need help making this program. I'm having trouble on how to correctly calculate the year and month for the full retirement age.Here is an example of the output:Enter year of birth or to exit: 1954Enter the month of birth: 9Your full retirement age is 66 and 0 monthsthis will be in September of 2020Enter the year of birth or to exit (user presses the Enter Key)Process finished with exit code 0Here is a picture of my code

image text in transcribed
Edit View Navigate Code Help Lesson01 - FullRetirementAge.py mygrade.py FullRetirementAge.py X import datetime CurrentAge = 0 print ("Social Security Full Retirement Age Calculator") Year = int(input("Enter the year of birth or to exit press enter key:")) Month = int(input("Enter the month of birth:")) Day = int(input("Enter the day of birth:") ) DOB = datetime . datetime (Year, Month, Day) Age = (datetime . datetime . now() - DOB) days = int(Age . days) CurrentAge += int(days/365) now = datetime . datetime . now( ) print (now . strftime ('sB' )) if Year ==1900 or Year 1960: print ("Your full retirement age is 67 and 0 months") elif Year = = 1955 5: Problems TODO Terminal Python Console Type here to search

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions