# first of all we want check if individual is smoker or not
#create estimated_smoker function
def analyze_smoker(smoker_status):
  if smoker_status == 1:
    print("To lower your cost, you should consider quitting smoking.")
  else:
    print("Smoking is not an issue for you.")

    
#define analyze_bmi function
def analyze_bmi(bmi_value):
  if bmi_value > 30:
    print("Your BMI is in the obese range. To lower your cost, you should significantly lower your BMI.")
  elif bmi_value >= 25 and bmi_value <= 30:
    print("Your BMI is in the overweight range. To lower your cost, you should lower your BMI.")
  elif bmi_value >= 18.5 and bmi_value < 25:
    print("Your BMI is in a healthy range.")
  else:
    print("Your BMI is in the underweight range. Increasing your BMI will not help lower your cost, but it will help improve your health.")
    
 #define a Function to estimate insurance cost:
def estimate_insurance_cost(name, age, sex, bmi, num_of_children, smoker):
  
  estimated_cost = 250*age - 128*sex + 370*bmi + 425*num_of_children + 24000*smoker - 12500
  print(name + "'s Estimated Insurance Cost is: " + str(estimated_cost) + " dollars.")
  analyze_smoker(smoker)
  analyze_bmi(bmi)

  return estimated_cost

# test our code locally
JohnDoe_insurance_cost = estimate_insurance_cost(name = 'John Doe', age = 29, sex = 1, bmi = 26.2, num_of_children = 3, smoker = 1)

sex_input = input("Enter 1 for male otherwise Enter 0")
name_input = input("What is your name?")
age_input = input("what is your age?")
bmi_input = input("What is BMI?")
children_input = input("How many children do you have?")
smoker_input = input("If smoker enter 1 otherwise enter 0")
user_insurance_cost = estimate_insurance_cost(name= name_input, age = int(age_input), sex = int(sex_input), bmi = float(bmi_input), num_of_children = int(children_input), smoker = int(smoker_input))