COMP 200 - Assignment #5
COMP 200 - Assignment #5
650)
12. Assume our model requires 1014 computations to simulate one hour of activity.
If 1 MIPS = 10 6 MIPS
Then 800 MIPS = 800 × 10 6 MIPS
If 1 mins = 60 seconds
Then 5 mins = 60 × 5 seconds
Schneider, G. M., & Gersting, J. L. (2012). Invitation to Computer Science (6th ed.). Cengage Learning.
Assignment #5 – Chapter 14 (pg. 684)
7. Using the Employees table of Figure 14.6 and the InsurancePolicies table of Figure 14.7,
write an SQL query that retrieves first and last names, hours worked, and insurance
plan types for all employees who have worked fewer than 100 hours.
The primary key in Employees (ID), and the foreign key in InsurancePolicies (EmployeeID)
relates the two tables. This allows the SQL query below to retrieve the required information
found in both tables about employees who have worked fewer than 100 hours:
However, the query would not yield any results, because the two employees who have
worked fewer than 100 hours (according to the table Employees) are not on the
InsurancePolicies table (highlighted). The two employees are Kay, Janet (ID 116) who has
worked 94 hours, and Honou, Morris (ID 165) who has worked 53 hours.
Schneider, G. M., & Gersting, J. L. (2012). Invitation to Computer Science (6th ed.). Cengage Learning.
Assignment #5 – Chapter 15 (pg. 723)
1. Suppose that in a formal logic, green(x) means that x has the attribute of being green,
frog(x) means that x has the attribute of being a bullfrog, and J stands for the specific
entity Jeremiah. Translate the following formal statements into English:
Schneider, G. M., & Gersting, J. L. (2012). Invitation to Computer Science (6th ed.). Cengage Learning.
Assignment #5 – Chapter 16 (pg. 755)
5. Below is the vertex list for a two–dimensional wireframe triangular model. Draw the
two–dimensional figure modelled by the vertex list.
Vertex x y Connected to
(origin) v1 0 0 v2, v3, v4
v2 0 1 v1, v4
v3 1 0 v1, v4, v5
v4 1 1 v1, v2, v3, v5
v5 1.6 0.5 v3, v4
1.5
V2 V4
1
V5
0.5
V1 V3
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
Schneider, G. M., & Gersting, J. L. (2012). Invitation to Computer Science (6th ed.). Cengage Learning.