Question: Windows 7 Spring 2018 ine yoyy struct tourType ( int distance time Type travelTime dateType travelStartDate, int numDays 2: a Write a statement that declares
Windows 7 Spring 2018 ine yoyy struct tourType ( int distance time Type travelTime dateType travelStartDate, int numDays 2: a Write a statement that declares an array of 5 tourType. Name the array as "vocation". (5 pts) b. Write a function, findLongest, that takes the vocation and vocationSize (of value equal to 5) as its parameters, then return the element of vocation which has the longest distance. Note: your fiunction should return a tourType instcad of void. (15 pts) Windows 7 Spring 2018 ine yoyy struct tourType ( int distance time Type travelTime dateType travelStartDate, int numDays 2: a Write a statement that declares an array of 5 tourType. Name the array as "vocation". (5 pts) b. Write a function, findLongest, that takes the vocation and vocationSize (of value equal to 5) as its parameters, then return the element of vocation which has the longest distance. Note: your fiunction should return a tourType instcad of void. (15 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
