
CAP 4800 and CAP 5805
EXAM 2, Computer Simulation, closed book & notes
DATE: Friday, November 19, 2004
The exam lasts for 50 minutes and is 100 points total. Each question is weighted the same.
CAP 4800: Answer any 3 out of 4 questions. CAP 5805: Answer all 4 questions.
1. Consider the functional block model below. The top two blocks are integrators,
and the bottom block is a multiplier. What is the differential equation for this
model? Given the initial conditions x(0) = x’(0) = 2, and a delta_time=0.1,
simulate this system for a total length of time equal to 0.3. Show the value of x(t)
at the following times: 0, 0.1, 0.2, and 0.3. Rounding to the first decimal place
to the right of the period is acceptable.
2. Consider the following table, defining 5 customers who enter a system with one
server, with their time since last arrival (TSLA) and their service time amounts
(ST) being specified for you. Fill in the rest of the table. Here are the
remaining acronym definitions: ACT = Arrival Clock Time (absolute time);
SB (time that service begins); SE (time that service ends); CW (amount of
time that the customer waits, which includes the time being served); SI
(amount of time that the server is idle).
C# TSLA ACT ST SB SE CW SI
1 0 0 4
2 3 2
3 1 1
4 1 4
5 1 2