public class property_tax{
public string p, b_type, b_usage ;
public void propertry_detail(String a, String b, String c, int x, int y){
public class calculation : property_tax{
public double tax_rate, monthly_rent_value, annual_rent_value, plot_value, building_value, maintanance_of_building, basic_value;
public double age_discount, type_discount;
public double annual_value, general_tax, library_cess, eaducation_tax, property_tax, total_tax, penalty;
if(p == "thiruneermalai" || p == "Thiruneermalai"){
monthly_rent_value = tax_rate * sq;
annual_rent_value = 12 * monthly_rent_value;
plot_value = (annual_rent_value*(1)/6);
building_value = annual_rent_value - plot_value;
maintanance_of_building = building_value/10;
basic_value = annual_rent_value - maintanance_of_building;
else if(b_age >=6 && b_age <=15){
age_discount = basic_value*10/(100);
else if(b_age >=16 && b_age <=25){
age_discount = basic_value*15/(100);
age_discount = basic_value*20/(100);
if(b_type == "Rcc" || b_type == "rcc"){
type_discount = basic_value*10/(100);
else if(b_type == "Thatched" || b_type == "thatched"){
type_discount = basic_value*40/(100);
type_discount = basic_value*60/(100);
annual_value = (basic_value - age_discount);
general_tax = annual_value*10/(100);
library_cess = general_tax*10/(100);
property_tax = general_tax + library_cess;
total_tax = property_tax + penalty;
Console.WriteLine("\nPlace :\t"+p);
Console.WriteLine("Building Usage :\t"+b_usage);
Console.WriteLine("Tax rate (per Sq.Ft) :\t{0} paise",tax_rate);
Console.WriteLine("Monthly rental value :\tRs.{0}",monthly_rent_value);
Console.WriteLine("Annual rental value :\tRs.{0}",annual_rent_value);
Console.WriteLine("plot value :\tRs.{0}",plot_value);
Console.WriteLine("Building value :\tRs.{0}",building_value);
Console.WriteLine("Maintanace value :\tRs.{0}",maintanance_of_building);
Console.WriteLine("Basic value :\tRs.{0}",building_value);
Console.WriteLine("Annual value :\tRs.{0}",annual_value);
Console.WriteLine("General Tax :\tRs.{0}",general_tax);
Console.WriteLine("Property Tax :\tRs.{0}",property_tax);
Console.WriteLine("Total Tax :\tRs.{0}",Math.Round(total_tax));
else if( p == "Perungalathur" || p == "perungalathur"){
monthly_rent_value = tax_rate * sq;
annual_rent_value = 12 * monthly_rent_value;
plot_value = (annual_rent_value*(1)/6);
building_value = annual_rent_value - plot_value;
maintanance_of_building = building_value/10;
basic_value = annual_rent_value - maintanance_of_building;
else if(b_age >=6 && b_age <=15){
age_discount = basic_value*10/(100);
else if(b_age >=16 && b_age <=25){
age_discount = basic_value*15/(100);
age_discount = basic_value*20/(100);
if(b_type == "Rcc" || b_type == "rcc"){
type_discount = basic_value*10/(100);
else if(b_type == "Thatched" || b_type == "thatched"){
type_discount = basic_value*40/(100);
type_discount = basic_value*60/(100);
annual_value = (basic_value-age_discount);
general_tax = annual_value*10/(100);
library_cess = general_tax*10/(100);
property_tax = general_tax + library_cess;
total_tax = property_tax;
Console.WriteLine("\nPlace :\t"+p);
Console.WriteLine("Building Usage :\t"+b_usage);
Console.WriteLine("Tax rate (per Sq.Ft) :\t{0} paise",tax_rate);
Console.WriteLine("Monthly rental value :\tRs.{0}",monthly_rent_value);
Console.WriteLine("Annual rental value :\tRs.{0}",annual_rent_value);
Console.WriteLine("plot value :\tRs.{0}",plot_value);
Console.WriteLine("Building value :\tRs.{0}",building_value);
Console.WriteLine("Maintanace value :\tRs.{0}",maintanance_of_building);
Console.WriteLine("Basic value :\tRs.{0}",building_value);
Console.WriteLine("Annual value :\tRs.{0}",annual_value);
Console.WriteLine("General Tax :\tRs.{0}",general_tax);
Console.WriteLine("Property Tax :\tRs.{0}",property_tax);
Console.WriteLine("Total Tax :\tRs.{0}",Math.Round(total_tax));
public static void Main()
string place, building_type, building_usage;
int building_age, Total_sqt;
Console.WriteLine("Enter your place. (eg.perungalathur, thiruneermalai.)");
place = Console.ReadLine();
Console.WriteLine("Enter your building type. (eg.tiled, rcc, thatched");
building_type = Console.ReadLine();
Console.WriteLine("Enter your building usage. (eg. own usage, rent house, commerical");
building_usage = Console.ReadLine();
Console.WriteLine("Enter your building age. (eg. 7,5,8,25");
building_age = int.Parse(Console.ReadLine());
Console.WriteLine("Enter your Total square feet");
Total_sqt = int.Parse(Console.ReadLine());
calculation display = new calculation();
display.propertry_detail(place, building_type, building_usage, building_age, Total_sqt);