Premium Essay

Week 5 Sd1340

In: Computers and Technology

Submitted By souprb
Words 1297
Pages 6
EXPLORE Activity 3: Designing Objects with Visio
In-Class Activity Ungraded
Course Support Tools/Resources required for this activity:
Visio
Description:
Demonstrate creating an object in Visio. Create a UML diagram and show how to define attributes (properties) and operations (methods). Create the UML for the Card object used in the example. The result should look like this: [pic]

Estimated Time: 10 minutes

PRACTICE Activity 1: Designing Objects
In-Class Activity Ungraded
Course Support Tools/Resources required for this activity:
None
Description:
Divide the class into groups of three or four students. Assign each group one of the following objects:
Product
MusicDownload
User
TakeoutItem
ElectronicBook
Video

Ask each group to identify at least three properties and one method for each object and write the JavaScript code they would use to define the object. Have a member of each group write their code on the whiteboard.

Built-In Objects

EXPLORE ACTIVITY 4: BUILT-IN OBJECTS
In-Class Activity Ungraded
Course Support Tools/Resources required for this activity:
Unit 5 PowerPoint Presentation (SD1340.U5.PP1)
Unit5Sample2.html (SD1340.U5.AF2)
Description:
Use Slides 22 through 32 to discuss built-in objects. Students have already been introduced to the Array, String, and Math built-in objects. Use Slides 22 and 23 to show how a built-in object can be extended. Use Slides 24-26 to explore the Math object. Unit5Sample2.html (SD1340.U5.AF2) illustrates how random numbers are chosen, by generating a group of numbers and then calculating their average. An average of 0.5 indicates a random distribution. You can run the code more than once to show how the results differ. Slide 27 explains how you can use the “with” keyword to reduce the amount of typing. Use Slides 28-32 to discuss the Date object.

Estimated Time: 20 minutes

Similar Documents