/*-------------------------------------------------- created by st10 at Fri Oct 14 12:48:30 PDT 2016 --------------------------------------------------*/ #include <cstdlib> #include <iostream> #include <string> #include <cmath> using namespace std; /*-------------------------------------------------- signature: name_length : string string -> int purpose: expects a first name and a last name, and returns the number of characters in both combined examples: name_length("Justin", "Savage") == 12 name_length("Sharon", "Williams") == 14 --------------------------------------------------*/ int name_length(string first_name, string last_name) { return first_name.length() + last_name.length(); }