Draw a decision tree depicting the reimbursement policy in Problem below :
Clyde Clerk is reviewing his firm’s expense reimbursement policies with the new salesperson, Trav Farr. “Our reimbursement policies depend on the situation. You see, first we determine if it is a local trip. If it is, we only pay mileage of 45 cents a mile. If the trip was a one-day trip, we pay mileage and then check the times of departure and return. To be reimbursed for breakfast, you must leave by 7:00 A.M., lunch by 11:00 A.M., and have dinner by 5:00 P.M. To receive reimbursement for breakfast, you must return later than 10:00 A.M., lunch later than 2:00 P.M., and have dinner by 7:00 P.M. On a trip lasting more than one day, we allow hotel, taxi, and airfare, as well as meal allowances. The same times apply for meal expenses.” Write structured English for Clyde’s narrative of the reimbursement policies.
```
DO WHILE there are claims remaining.
IF a local trip
Pay 45 cents a mile
THEN IF a one-day trip
Pay mileage and check the times of departure and return
IF leave by 7:00 A.M. and return later than 10:00 A.M.
THEN receive reimbursement for breakfast
IF leave by 11:00 A.M. and return later than 2:00 P.M.
THEN receive reimbursement for lunch
IF leave by 5:00 P.M. and have dinner by 7:00 P.M.
THEN receive reimbursement for dinner
ELSE
We allow hotel, taxi, and airfare
ENDIF
ENDIF
ENDIF
Print summary for Trav Farr
ENDDO
```
You might also like to view...
Values of type ____ are represented using 16-bit integer numbers.
A. int B. boolean C. char D. long
In a table, if you use the Rotate All Text 90° feature, it will position text vertically facing to which side?
A) Right B) Left C) Stacked left D) Stacked right
A security analyst is reviewing the following log from an email security service. Which of the following BEST describes the reason why the email was blocked?
A. The To address is invalid. B. The email originated from the www.spamfilter.org URL. C. The IP address and the remote server name are the same. D. The IP address was blacklisted. E. The From address is invalid.
The naming system for the different Android versions is based on dessert names.
Answer the following statement true (T) or false (F)