Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions