function [water_gal_month] = water_calculation(user_answers) //This function takes the user's answers and calculates the monthly //water consumption in gallons per month. //Water - Pets pet_water_gpw = 36*user_answers(6); //36 gal per week * # of pets //Water - Washing machine laundry_water_gpw = 15*user_answers(10); //15 gal per load * loads per week //Water - Washing hands hand_washing_water_gpw = 2.5*7*user_answers(3); //2.5 gal per day * 7 days per week * # occupants //Water - Washing dishes dish_washing_water_gpw = 50; //50 gal per week //Water - Cooking cooking_water_gpw = 0.5*3*7*user_answers(3); //0.5 gal per meal * 3 meals per day * 7 days per week * # occupants //Water - Cleaning gen_cleaning_water_gpw = 3; //3 gal per week //Water - Drinking drinking_water_gpw = 1*7*user_answers(3); //1 gal 7 days per week * # occupants //Water - Showers shower_water_gpw = 20*user_answers(11)*7; //20 gal per shower * showers per day * 7 days per week //Water - Baths bath_water_gpw = 36*user_answers(13); //36 gal per bath * baths per week //Water - Brushing Teeth / General Hygiene gen_hygiene_water_gpw = 2.5*7*user_answers(3); //2.5 gal per day * 7 days per week * # occupants //Water - Plants plant_water_gpw = 1*7*1/16*user_answers(7); //1 cup per plant per day * 7 days per week * 1 gal per 16 cups * # plants //Water - Miscellaneous misc_water_gpw = 7; //1 gal per day misc. * 7 days per week water_gal_month = (pet_water_gpw + laundry_water_gpw + ... hand_washing_water_gpw + dish_washing_water_gpw + cooking_water_gpw + ... gen_cleaning_water_gpw + drinking_water_gpw + shower_water_gpw + ... bath_water_gpw + gen_hygiene_water_gpw + plant_water_gpw + ... misc_water_gpw)*52/12; //gal per week * 52 weeks per year / 12 months per year endfunction