[Solved] : Question 134235

1.Write the code of a class by the name of Person that contains attributes like name, age income etc and a method called calculatedTax(). All attributes should be private and use properties for read and write values for above mentioned attribues and a public method that calculates tax on the basis of a person’s income. If the income of the person is below 100, 000 it should say no tax applies on you. For income between 100,000 and 300, 000 15% tax should be displayed of the entered income amount. For income above 300, 000 25% should be displayed for the entered income amount. Write the complete code for the Person class and how the Person object is created and its method is called? The person object should be created by entering the required information in that should take input for the person’s name, age and income using properties ?

Expert Answer

Answer to : Question 134235

Leave a Comment


We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?