Docsity

CS 122 Engineering Computation Lab: Lab 2 - Drexel University - Prof. Bruce W. Char, Lab Reports of Computer Science

Toggle sidebar
bg1
1/10/2009
1
CS 122 Engineering Computation Lab
Lab 2
Bruce Char
Department of Computer Science
Drexel University
January 2009
©By the author. All rights reserved. Permission is given to CS122 Fall 2009
staff and students to use and reproduce these notes for their own use.
Your class instructor and TA
• Instructor for this section:
Office:
Email:
Telephone:
• Your TAs are:
Class Overview
• Syllabus and Course Information
• Functions (Parameter Types)
• Random Number Generators
• Solving With Inequalities
• Animations
Class syllabus
• Paper copies distributed in class
• Copy available on-line
• Grading policies, quiz schedules, cheating
penalties, etc. explained – read it!
Class web page
• www.cs.drexel.edu/complab/cs122/winter2009
• bbVista page
–learning.drexel.edu
Class schedule
• Lab every other week during the term
• Weeks 2, 4, 6, 8
–Attendance required
–4 Labs vs. 5 Labs last term
–Verification sheet (one per lab team)
• Do the work in lab
• Get sheet signed by lab staff
• Turn in sheet at end of lab period as record of what
you’ve done.
pf3
pf4
pf5

Partial preview of the text

Download CS 122 Engineering Computation Lab: Lab 2 - Drexel University - Prof. Bruce W. Char and more Lab Reports Computer Science in PDF only on Docsity!

CS 122 Engineering Computation Lab

Lab 2

Bruce Char

Department of Computer Science

Drexel University

January 2009

©By the author. All rights reserved. Permission is given to CS122 Fall 2009 staff and students to use and reproduce these notes for their own use.

Your class instructor and TA

• Instructor for this section:

Office:

Email:

Telephone:

• Your TAs are:

Class Overview

• Syllabus and Course Information

• Functions (Parameter Types)

• Random Number Generators

• Solving With Inequalities

• Animations

Class syllabus

• Paper copies distributed in class

• Copy available on-line

• Grading policies, quiz schedules, cheating

penalties, etc. explained – read it!

Class web page

  • www.cs.drexel.edu/complab/cs122/winter
  • bbVista page
    • learning.drexel.edu

Class schedule

• Lab every other week during the term

• Weeks 2, 4, 6, 8

– Attendance required

– 4 Labs vs. 5 Labs last term

– Verification sheet (one per lab team)

  • Do the work in lab
  • Get sheet signed by lab staff
  • Turn in sheet at end of lab period as record of what you’ve done.

Other class requirements

• Take on-line quiz in weeks 3,5,7,

  • Based on lab from week before.
  • Typically due 4:30pm Friday (a change from last term)
  • Can take quiz from any internet/browser-enabled computer.
  • Use CLC in UCROSS 147 for face-to-face help
    • Nearly constantly staffed in odd weeks

• Class final exam in week 10 (in the Winter term,

week 10 is the last week of classes, the week

before final exams).

  • Proficiency exam is taken “live” during your regularly scheduled lab period.

What counts towards class grade,

what doesn’t count

  • Doing lab work during lab.
    • Make up labs for those with valid excuse
    • Talk to your instructor to get into a make up lab. Can get credit for a make up lab only with instructor’s permission, since only they record your lab grades.
  • Take quiz in week after the lab.
    • Some questions may involve dynamically generated components so you won’t get the exact same questions all the time.
    • Some questions on the quiz will have “how do I do” which allows you to find out if you got it right or wrong and try again.
    • May retake quiz as many times as you wish, up to deadline.
    • System can hold at most 70 people at once so avoid taking exams at the last minute.
  • Proficiency exam is “traditional” – take it proctored in class in week 10.

Functions and Parameter Types

Functions can take any kind of parameter, not just

numbers, a very useful property.

  • Lists, Sets, Equations, Expressions, etc.
  • Allows us to take in a variable number of parameters

Functions and Parameter Types

If we use lists, we can easily repeatedly call the

function on a list of inputs:

Functions and Parameter Types

Everything in Maple has a type. This can be:

  • Kind of value
  • Permissible Operation

Functions and Parameter Types

• Types are how Maple interprets variables

• Sometimes we can turn types into others

• Converting list to a sum:

Constraining Solutions Constraining Solutions

• We use ‘assuming’ when result is

piecewise. This cuts the number of

possible solutions:

Animations

• Animations in Maple

– Once generated can be played with the Maple

worksheet (chapter 6 from last term)

– Can be exported as gifs to be placed in a web

page (www.cs.drexel.edu/~bchar/card08.html)

• Steps for making animation:

– Create a list of plots

  • Each element represents one frame of animation
  • Use plotsdisplay to display the list in order

Animations

• Example:

What you should do now

• Connect to class web page:

www.cs.drexel.edu/complab

• Start up Maple 12

• Read Lab 1 directions.

• Do the work with your partner(s). Both

should try to do the work, but the grader

will need to look at only one answer to

give you credit for doing the problem.

Finishing up – save files

  • Make sure your name/user id/section number/ date,time/instructor name are on the verification sheet.
  • Get the verification sheet signed and handed in.
  • Save worksheet on desktop if you haven’t done so already. You can call the file “MyLab1CS122”. This will create a file called MyLab1CS122.mw.
  • Submit a copy to Blackboard site.
  • Email a copy to yourself and/or your lab partners as an attachment so you can look at what you did for review purposes later.
  • .mw file should open correctly on any Maple 12 (Mac, Windows, Linux) – file format is portable across system types.

Next week – Take quiz 1!

• Take the first quiz, starting next week

Monday.

• Go to CLC if you need face-to-face help

• Don’t wait until the last minute to discover

that you needed more time to complete

the quiz!