CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012.

Slides:



Advertisements
Similar presentations
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2012.
Advertisements

CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
CSE 113 Introduction to Computer Programming Lecture slides for Week 10 Monday, October 31 th, 2011 Instructor: Scott Settembre.
Today’s quiz on 8.2 B Graphing Worksheet 2 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
Please open your laptops, log in to the MyMathLab course web site, and open Quiz 3.6B. IMPORTANT NOTE: If you have time left after you finish the problems.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily quiz will be given at the.
CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2010.
Instructor Tutorial. When you receive this , click the link above. You will then be directed to our online accommodated exam request application.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University October 6-10, 2008 ©By the author. All rights reserved.
CS 122 Engineering Computation Lab Lab 2 Dan De Sousa and Tim Cheeseman Department of Computer Science Drexel University April 2009 ©By the author. All.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Fall 2012 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
CSE 113 Introduction to Computer Programming Lecture slides for Week 5 Monday, September 26 th, 2011 Instructor: Scott Settembre.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
WELCOME! IDES 240 – SPRING INTRODUCTIONS Professor: Jon Vredevoogd Assistant Instructor: Kristy Kellom LEAD TA’s: –Ashley Forsythe
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Spring 2011.
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2010.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
CS 122 / CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Summer 2011 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer, 2009 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
CS 123 Engineering Computation Lab Lab 2 Dan De Sousa and Bruce Char Department of Computer Science Drexel University April 2009 ©By the author. All rights.
CS122 Instructor Assignments Winter, 2010 Term. Overview Some changes in assignments due to schedule considerations Some new initiatives / revised strategies.
Calculus I – Course Syllabus Class Periods: 1:00pm-1:50am MTWF Classroom: Thompson Hall 315 Instructor: Mei Q. Chen, Thompson Hall 230
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
CS122/CS123 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer 2011.
CS 123 Lab 4 Instructor: Mark Boady Course Designer: Professor Bruce Char Department of Computer Science Drexel University Spring 2013.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2011.
CS122 / CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Summer 2011 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2010.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2012 ©By the author. All rights reserved. Permission.
CS123 Engineering Computation Lab Lab 1 Section Instructor: Mark Boady Content By: Bruce Char Department of Computer.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2012.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Winter, 2011 ©By the author. All rights reserved.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2012 ©By the author. All rights reserved. Permission.
CS 122 Engineering Computation Lab Lab 4 Dan De Sousa and Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights.
CS123 Engineering Computation Lab Lab 2 Instructor: Mark Boady Content By: Bruce Char Department of Computer Science Drexel University.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2013.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
CS123 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter, 2011 ©By the author. All rights reserved.
CS122 – Quiz 2 Winter, 2013 Quiz Hints. Quiz 2 Hints Question 1 – working with the “if” statement  First, we did not fully explain the structure of the.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Winter 2010.
CS122 – Quiz 1 Winter, 2013 Quiz Hints. Quiz 1 Hints Question 1 – Understanding procs  First, we did not fully explain the structure of the Maple proc,
CS123 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Spring 2013.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2011.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS 122 Engineering Computation Lab Lab1 Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission.
CS 122/CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Summer 2011 ©By the author. All rights reserved.
Teachers: If you hand back Test 4 today, tell your class you will review it with them in class on Thursday when you do the review lecture on Chapters 6,
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2013.
REMINDER: If you haven’t yet passed the Gateway Quiz, make sure you take it this week! (You can find more practice quizzes online in the Gateway Info menu.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Fall 2011 ©By the author. All rights reserved. Permission.
Grade Scale Quiz 3 Results: Average class score after partial credit: XX.X% Commonly missed questions: # ____________________ We will be going over some.
Mrs. Ilardi Algebra 1, Algebra 2, Precalculus. Contact Information I can be reached at You can call me at
CS122 Engineering Computation Lab Lab 4
Welcome to the Nevada Test Administration Training and Q&A Session
CS 121 Engineering Computation Lab Lab 3
CS123 Engineering Computation Lab Lab 4
CS122 Engineering Computation Lab Lab 3
Presentation transcript:

CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012

Review of Lab 3 Cycle –Major Lab 3 concepts to remember Use of Maple proc to create boxes, run a chemical reaction Use of table variables in conjunction with “for” loop to execute a time step simulation Maple plot features – line plotting – display – plot multiple graphs on same grid

Review of Lab 3 Cycle drawBoxB proc syntax: –drawBoxB:=proc(width, height, xlo, ylo,c) L1 := line([xlo,ylo],[xlo+width,ylo],color=c); L2 := line([xlo+width,ylo],[xlo+width,ylo+height],color=c); L3 := line([xlo,ylo],[xlo,ylo+height],color=c); L4 := line([xlo,ylo+height],[xlo+width,ylo+height],color=c); Box := display([L1,L2,L3,L4],axes=none, scaling=constrained); return Box; end proc; Need in Lab 4 for movement of particle in box exercises – Part 1

Administrative Notes Please contact your instructor immediately if you are eligible for extended time for the Proficiency Exam A comprehensive preview for the proficiency exam was sent as an attachment in last Thursday’s weekly communication . Please also review your bbVista Lab and Quiz grades and report any discrepancies to your instructor As with cs121, there will be an opportunity to earn a 2% bonus for submitting a student evaluation. Details to follow!

Proficiency Exam Preview Same logistics as in cs121 –Proctored format –A quiz pair: 6 point and 8 point quizzes (about 25 and 70 minutes) –Sign-in and score verification on exit –No access to bbVista or any other non course sites – will have access to all course site materials To be conducted during week of March 12 (week 10) in class for your regularly scheduled lab session Practice – week of March 5 (week 9) –All 4 quizzes and quizlets taken throughout the term will be re-posted on Tuesday, 3/6 – note that quiz 4 will take place during week 9 –A special quiz containing some problems not included in regular quizzes will also be issued – these questions are candidates for inclusion –Full quiz week (9) CLC coverage – Monday through Friday

Quiz Week (9) Activities Quiz 4 will be released on Friday (3/2) at 6 PM –Deadline: Thursday (3/8) at 4:30 PM –Makeup quiz – from Thursday (3/03) at 9 AM through Sunday (3/06) at 11:00 PM 30% penalty No Pre-lab quizlet Be sure to visit the CLC for quiz assistance Practice week for Proficiency Exam –posting of practice quizzes on 3/6 –Exam to be conducted during week of March 12 (week 10)

Lab 4 Overview Based on materials from Chapter 15 and prior readings –All scripts created as procs –2 more examples of time step simulations –Conditional execution Choosing alternatives – if.. then.. else.. elif constructs –Creating movies (animations) from individual frames –Use of “for” and “while” constructs within same loop header

Lab 4 Overview Lab 4 outline –Part 0 exercises Practice on “if”, “if-else” and “if-elif-else” constructs –Part 1 – particle movement in box (time step simulation) 1.1 – using the drawboxB proc from Lab 3 to animate the bouncing of a particle off of the East wall of a box revising script from 1.1 (drawBoxB + East wall bounce) to handle bounce off of West wall 1.3 – adding logic to bounce off of North and South walls –- including diagonal movement

Lab 4 Overview Lab 4 outline –Part 2 – Movement of a bouncing ball (another time step simulation) 2.1 – modification of a starter script (Blammo trajectory logic) to create an initial trajectory into ground 2.2 – Further modification to produce bounces and rebounds off of ground 2.3 – Plot and movie to show a specified number of bounces

Lab 4 Maple Concepts: Discussion Choosing among cases – if-then-elif-else-end –if (condition1) then Code to execute if condition1 is true –elif (condition2) then Execute if condition2 is true Note – only can reach here if condition 1 was false –elif (condition3) then if condition 3 true (1 and 2 were false) –else “catch all” bucket – if all case conditions specified above were false –end if; East, West, North and South wall bounces for particle movement will utilize this construct See today’s Part 0 exercises for example and syntax

Lab 4 Maple Concepts: Discussion Use of the ptpos (list) variable in Part 1 of today’s lab –ptpos is a list that represents a point in the X-Y grid with an x coordinate = x and y coordinate = y –For example, if the value of ptpos is the list [9,1], it indicates that the moving point is at the simulated coordinate (9,1) within the box. –To get the value of the x coordinate in the midst of the simulation, use the expression ptpos[1]. –To get the value of the y coordinate, use the expression ptpos[2].

Anatomy of an animation # 1 st, create a table variable to store frames –frames := table(); # Within loop, populate table with individual frames –frames[i] := plot([xp],[yp],style=point, color=“Green”); # this plot is of a single point (xp,yp) # after all frames are populated, run an animation # insequence=true causes the animation to take place –display(convert(frames,list), insequence=true,scaling=constrained);

Use of “for” and “while” within same loop header Example from today’s lab – Part 2 for i from 1 while numbounces < 6 do –# the “for i from 1” portion of the header enables use of a counter (i) to populate subscripts within the loop –# the “while numbounces < 6” portion conditionally loops until the 6 th bounce has been determined