Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

unsigned long intsnum, zcode; unsigned long intlower = 100000000 , upper =999999

ID: 3617472 • Letter: U

Question

unsigned long intsnum, zcode;

unsigned long intlower = 100000000 , upper =999999999;

unsigned long intlower1 = 10000, upper1 =99999;

// Function template

template <class T>

T overunder(T value1, T value2, Tvalue3)

{

if(value3 <value1 || value3 > value2)

{

cout << "Invalid entryplease try again: " <<endl;

cin >>value3;

value3 = overunder(value1, value2,value3);

}

return value3;

cout << "Enter five digitZipcode: " <<endl;

cin >>zcode;

zcode = overunder(lower1, upper1,zcode);

incomeFile1.setZip(zcode);

cout << "Enter socialsecurity # format(xxxxxxxxx): " << endl;

cin >>snum;

snum = overunder(lower, upper,snum);

incomeFile1.setSsnn(snum);

Explanation / Answer

please rate - thanks 9000000000 is larger then the largest number that firs in a longunsigned or unsigned int. you must first input as a string --note 2 lines of code commented out #include #include #include using namespace std; unsigned long int snum, zcode; unsigned long int lower = 100000000 , upper = 999999999; unsigned long int lower1 = 10000, upper1 = 99999; // Function template template T overunder(T value1, T value2, T value3) { if(value3 value2) { cout