Write a java program for subsidy calculation for citizen given by government during floods. The attributes for citizen n
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a java program for subsidy calculation for citizen given by government during floods. The attributes for citizen n
Write a java program for subsidy calculation for citizen givenby government during floods. The attributes for citizen name,address, adhar no, subsidy amount. There are three types normalcitizen, senior citizen, physically challenged citizen. Seniorcitizen has further attribute age. subsidy is calculated based onAge range 65 to 75 10000 Rs, 75 and above 15000Rs.For , physicallychallenged citizen further attribute added level ofphysically challenged values are 1,2 or 3. . subsidy is calculatedbased on level .For Level 1 25000 Rs Level 2 40000 Rs Level 3 50000 Rs .For normal citizen flat 5000 Rs .Implementruntime polymorphism by using dynamic dispatch methodcalculateSubsidy() being abstract method in Citizen class.And Userespective Constructors.