Name: ______________________________________________
Login: ______________
Please answer the following questions on these sheets. Please put your name at the top of each sheet. You may use any printed material. Electronic devices are prohibited.
@Persistent
in AppEngine
contain an instance of another @Persistent
object as a member? Why or why not?
time person activitywhere
time
is a timestamp of the event in seconds since
Jan 1, 1970 00:00:00 GMT.
person
is the name of a person.
activity
is the name of the activity that was
started at this time, e.g., "sleeping", "running",
"walking", "working", etc.
George
spent sleeping
. This is the sum of
the differences between times that George
started
sleeping and times that George
started doing something else.
For example, for the data
10001 George sleeping 10006 George walking 10100 George sleeping 10200 George showering 10500 George runningyour program should output the number 105, which is 10006 - 10001 + 10200 - 10100. You may assume that every time George starts sleeping, there is another subsequent event when George stops sleeping.
Name: ______________________________________________
Login: ______________
time stock changewhere:
time
is a time of day.
stock
is a stock code.
change
is the change in value (in + or - points).