Docsity

Computer Simulation Exam Questions for CAP 4800 and CAP 5805 - Prof. Paul A. Fishwick, Exams of Computer Science

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download Computer Simulation Exam Questions for CAP 4800 and CAP 5805 - Prof. Paul A. Fishwick and more Exams Computer Science in PDF only on Docsity!

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

  1. You are asked to model a population of bees over time, and you are given a birth rate and a death rate for the population. Draw and label a 1) signed causal graph, 2) flow graph, and 3) resulting equations representing this System Dynamics model.
  2. Specify the equations for the following kinetic graph. Assume a separate rate constant (ki) for each arrow. The double-headed arrow represents two different arrows in opposite directions, each using the same rate constant.

X Y

Z

A

B