Question
A person in the Civil Service Retirement System can retire at age 55 with at least 20 years of service. A simplified variation of the
A person in the Civil Service Retirement System can retire at age 55 with at least 20 years of service.
A simplified variation of the computation of the amount of their pension as follows:
Calculate the average annual salary for the persons best three years; call it ave.
Calculate number of months divided by 12 and call it yrs.
Calculate the percentage rate: 1.5% for the first five years, 1.75 for the next five years, 2% for each additional year. Call it perRate.
Take the minimum of perRate and 80%; call it p.
The amount of the pension is p*ave.
Write a python program that requests the inputs as shown in below figure, and calculates the amount of the pension.
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