B)Draw a behavioral state machine that describes the various states that a trave
ID: 3576798 • Letter: B
Question
B)Draw a behavioral state machine that describes the various states that a travel authorization can have through its approval process. A travel authorization form is used in most companies to approve travel expenses for employees. Typically, an employee lls out a blank form and sends it to his or her boss for a signature. If the amount is fairly small (<$300), then the boss signs the form and routes it to accounts pay-able to be input into the accounting system. Te sys-tem cuts a check that is sent to the employee for the right amount, and afer the check is cashed, the form is led away with the canceled check. If the check is not cashed within 90 days, the travel form expires. When the amount of the travel voucher is a large amount (>$300), then the boss signs the form and sends it to the CFO, along with a paragraph explain-ing the purpose of the travel; the CFO signs the form and passes it along to accounts payable. O course, the boss and the CFO can reject the travel authori-zation form if they do not feel that the expenses are reasonable. In this case, the employee can change the orm to include more explanation or decide to pay the expenses.
C. Think about the system that handles student admissions at your university. The primary function of the system should be able to track a student from the request for information through the admissions process u student is either admitted to the school or rejected. 1. Write a use-case description that can describe an Admit Student use case. Assume that applicants who are children of alumni are handled differently from other applicants. Also, assume that a generic Update Student Informati u case is available for your system to useExplanation / Answer
#include <iostream.h>
#include <fstream.h>
#include <string.h>
class Strategy;
class TestBed
;
TestBed()
void setStrategy(int sort, int width);
void doIt();
private:
Strategy *strategy_;
};
class Strategy
void format()
one > width_)
justify(line);
else
strcat(line, " ");
strcat(line, word);
}
justify(line);
}
protected:
int width_;
private:
virtual void justify(char *line) = 0;
};
class LeftStrategy: public Strategy
private:
/* virtual */void justify(char *line)
};
class RightStrategy: public Strategy
private:
/* virtual */void justify(char *line)
};
class CenterStrategy: public Strategy
private:
/* virtual */void justify(char *line)
};
void TestBed::setStrategy(int sort, int width)
void TestBed::doIt()
int main()
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.