function [tiny_house_summary] = summary_info(user_answers, water_gal_month, ... HVAC_data,energy_kWh_month, cost_and_BOM); //This function takes in all previous information and summarizes everything //for the user //tidy the command window clc; //Print closing statement to command window disp('All calculations are finished, and the summary for your tiny house'); disp('is shown on the following lines.'); disp('-------------------------------------------------------------------'); disp(' '); tiny_house_summary = [user_answers; water_gal_month; HVAC_data; energy_kWh_month; cost_and_BOM;]; disp('The length of trailer chosen (excluding the gooseneck) in feet is:'); disp(tiny_house_summary(1)); disp('-------------------------------------------------------------------'); disp(''); disp('The city chosen for the tiny house to reside in is:'); if tiny_house_summary(2) == 1 disp('Baltimore, MD'); elseif tiny_house_summary(2) == 2 disp('Denver, CO'); elseif tiny_house_summary(2) == 3 disp('Fargo, ND'); elseif tiny_house_summary(2) == 4 disp('Grand Rapids, MI'); elseif tiny_house_summary(2) == 5 disp('Houston, TX'); elseif tiny_house_summary(2) == 6 disp('Kansas City, MO'); elseif tiny_house_summary(2) == 7 disp('Miami, FL'); elseif tiny_house_summary(2) == 8 disp('Nashville, TN'); elseif tiny_house_summary(2) == 9 disp('Phoenix, AZ'); elseif tiny_house_summary(2) == 10 disp('Portland, ME'); elseif tiny_house_summary(2) == 11 disp('Sacramento, CA'); else disp('Seattle, WA'); end disp('-------------------------------------------------------------------'); disp(''); disp('The number of occupants to account for is:'); disp(tiny_house_summary(3)); disp('-------------------------------------------------------------------'); disp(''); disp('The number of cell phones to account for is:'); disp(tiny_house_summary(4)); disp('-------------------------------------------------------------------'); disp(''); disp('The number of laptops to account for is:'); disp(tiny_house_summary(5)); disp('-------------------------------------------------------------------'); disp(''); disp('The number of pets to account for is:'); disp(tiny_house_summary(6)); disp('-------------------------------------------------------------------'); disp(''); disp('The number of plants to account for is:'); disp(tiny_house_summary(7)); disp('-------------------------------------------------------------------'); disp(''); disp('Should a microwave be accounted for?'); if tiny_house_summary(8) == 1 disp('Yes.'); else disp('No.'); end disp('-------------------------------------------------------------------'); disp(''); disp('Should a washing machine be accounted for?'); if tiny_house_summary(9) == 1 disp('Yes.'); else disp('No.'); end disp('-------------------------------------------------------------------'); disp(''); if tiny_house_summary(9) == 1 disp('The number of loads of laundry per week to account for is:'); disp(tiny_house_summary(10)); disp('-------------------------------------------------------------------'); disp(''); end disp('The number of showers per day to account for is:'); disp(tiny_house_summary(11)); disp('-------------------------------------------------------------------'); disp(''); disp('Should a bathtub be accounted for?'); if tiny_house_summary(12) == 1 disp('Yes.'); else disp('No.'); end disp('-------------------------------------------------------------------'); disp(''); if tiny_house_summary(12) == 1 disp('The number of baths per week to account for is:'); disp(tiny_house_summary(13)); disp('-------------------------------------------------------------------'); disp(''); end disp('The number of windows to account for is:'); disp(tiny_house_summary(14)); disp('-------------------------------------------------------------------'); disp(''); disp('The approximate gallons per month of water usage is:'); disp(tiny_house_summary(15)); disp(''); disp('Compared to the national average of 3,000 gallons of water used'); disp('per month, per person, your usage is:'); if tiny_house_summary(3) == 1 //number of occupants disp(abs(((tiny_house_summary(15)/3000)-1)*100)); // compare 1:1 if tiny_house_summary(15)/3000 > 1 disp('percent higher.'); else disp('percent lower.'); end else disp(abs(((tiny_house_summary(15)/6000)-1)*100)); // compare 2:2 if tiny_house_summary(15)/6000 > 1 disp('percent higher.'); else disp('percent lower.'); end end disp('-------------------------------------------------------------------'); disp(''); disp('The 99% dry bulb heating temperature in degrees Fahrenheit'); disp('for your chosen location is:'); disp(tiny_house_summary(16)); disp('-------------------------------------------------------------------'); disp(''); disp('The needed heating capacity in BTU/hr for your location/options is:'); disp(tiny_house_summary(17)); disp('-------------------------------------------------------------------'); disp(''); disp('The 1% dry bulb cooling temperature in degrees Fahrenheit'); disp('for your chosen location is:'); disp(tiny_house_summary(18)); disp('-------------------------------------------------------------------'); disp(''); disp('The needed cooling capacity in BTU/hr for your location/options is:'); disp(tiny_house_summary(19)); disp('-------------------------------------------------------------------'); disp(''); disp('The approximate kWh per month energy usage is:'); disp(tiny_house_summary(20)); disp(''); disp('Compared to the national average of 914.3 kWh of energy used'); disp('per month, your usage is:'); disp(abs(((tiny_house_summary(20)/914.3)-1)*100)); if tiny_house_summary(20)/914.3 > 1 disp('percent higher.'); else disp('percent lower.'); end disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in inches, of 2 x 12s needed is:'); disp(tiny_house_summary(22)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in inches, of 2 x 4s needed is:'); disp(tiny_house_summary(23)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in inches, of 2 x 6s needed is:'); disp(tiny_house_summary(24)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in inches, of 2 x 8s needed is:'); disp(tiny_house_summary(25)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of bathroom sinks needed is:'); disp(tiny_house_summary(26)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in square feet, of bathroom tile needed is:'); disp(tiny_house_summary(27)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in square feet, of cotton/denim insulation needed is:'); disp(tiny_house_summary(28)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of kitchen counters needed is:'); disp(tiny_house_summary(29)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of kitchen sinks needed is:'); disp(tiny_house_summary(30)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in sqft, of metal roof needed is:'); disp(tiny_house_summary(31)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of HVAC mini-splits needed is:'); disp(tiny_house_summary(32)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in sqft, of plywood needed is:'); disp(tiny_house_summary(33)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of queen mattresses needed is:'); disp(tiny_house_summary(34)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of refrigerators needed is:'); disp(tiny_house_summary(35)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in square feet, of shiplap needed is:'); disp(tiny_house_summary(36)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in square feet, of siding needed is:'); disp(tiny_house_summary(37)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of stove/ovens needed is:'); disp(tiny_house_summary(38)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of toilets needed is:'); disp(tiny_house_summary(39)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of trailers needed is:'); disp(tiny_house_summary(40)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of bathtubs needed is:'); disp(tiny_house_summary(41)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of microwaves needed is:'); disp(tiny_house_summary(42)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of washer/dryer combination needed is:'); disp(tiny_house_summary(43)); disp('-------------------------------------------------------------------'); disp(''); disp('The amount, in pieces, of windows needed is:'); disp(tiny_house_summary(44)); disp('-------------------------------------------------------------------'); disp(''); disp('The approximate cost in USD for the shell of the tiny house is:'); disp(tiny_house_summary(21)); disp('-------------------------------------------------------------------'); disp(''); disp('Thank you for using this tool. Please scroll to the top of the'); disp('terminal window and enjoy building your tiny house!'); disp(''); disp('All code was written by Michael Stratton II'); //trailer_length_ft; 1 //city_num; 2 //occupant_num; 3 //cell_phone_num; 4 //laptop_num; 5 //pet_num; 6 //plant_num; 7 //microwave_num; 8 //washing_mach_num; 9 //laundry_num; 10 //shower_num; 11 //bathtub_num; 12 //bath_num; 13 //window_num; 14 //water_gal_month; 15 //one_percent_heat_temp; 16 //HVAC_heat_BTU_hr; 17 //one_percent_cool_temp; 18 //HVAC_cool_BTU_hr; 19 //energy_kWh_month; 20 //cost 21 //2x12, in 22 //2x4, in 23 //2x6, in 24 //2x8, in 25 //b. sink, pc 26 //b. tile, sqft 27 //insul, sqft 28 //counter, pc 29 //k. sink, pc 30 //m. roof, sqft 31 //minisplit, pc 32 //plywood, sqft 33 //q. mat, pc 34 //refrig, pc 35 //shiplap, sqft 36 //siding, sqft 37 //range, pc 38 //toilet, pc 39 //trailer, pc 40 //b. tub, pc 41 //microwave, pc 42 //washing, pc 43 //window, pc 44 endfunction