Write a java program for subsidy calculation for citizen given by government during floods. The attributes for citizen n

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply