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.

Slides:



Advertisements
Similar presentations
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
Advertisements

No calculators or notes can be used on this quiz.
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.
EG1003: Introduction to Engineering and Design EG1003 Overview.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
PLEASE HELP US OUT WITH THIS: When you go to the open lab next door in 203, please make sure you sign in on the log sheet and enter your instructor’s.
CS 115 TA Orientation Fall More students! Enrollment up to sections + night about 22% CS majors (50 on 8/16)
Next class session: Test 1 on all sections covered from Chapters 1 and 2 Remember: If you haven’t yet passed the Gateway Quiz, you need to review your.
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.
Welcome to Math 110 Online Section 001, Summer 2015.
CSE 1111 Week 1 CSE 1111 Introduction to Computer Science and Engineering.
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
Reminder: The Syllabus Quiz is due next session at the start of class. You can review/redo this quiz as many times as you want to get 100%. Only your best.
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
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 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University January 5-9, 2009 ©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.
Welcome to CS 115! Introduction to Programming. Class URL
ECEN 301Discussion #1 – Syllabus1 All Sections MWF 1:00 – 1:50 PM 256 CB Lecture: MW Recitation: F Labs: M or Th Instructor: Prof. David Long Office: CB.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
Welcome to CS 221! First Course in Computer Science for Engineers.
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 to CS 115! Introduction to Programming. Class URL ~mjspra2/ 115summer/
CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
ICS 6B Boolean Algebra and Logic Winter 2015
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2010.
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.
OO Data Structures SE Dr. Samir Tartir 2010/2011 Second Semester.
CS122/CS123 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer 2011.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
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.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
CS 121 Engineering Computation Lab Lab 3 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2012.
Welcome to CS 101! Introduction to Computers Fall 2015.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
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.
1. PLEASE HELP US OUT WITH THIS: When you go to the open lab next door in 203, please make sure you sign in on the log sheet and enter your instructor’s.
CS 121 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter, 2011 ©By the author. All rights reserved.
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.
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University February 16-20, 2008 ©By the author. All rights reserved. Permission.
CS 122 Engineering Computation Lab Lab1 Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission.
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,
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note-taking materials.
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.
INTE 290 Summer 2015.
Welcome to CS 115! Introduction to Programming Spring 2016.
CS122 Engineering Computation Lab Lab 4
CS 121 Engineering Computation Lab Lab 5
CS 121 Engineering Computation Lab Lab 2
CS123 Engineering Computation Lab Lab 4
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1301! Principles of Programming I.
EG 1003 Overview.
CS 121 Engineering Computation Lab Lab 3
Web Programming Ben Blanc
Welcome to Science!!! Things to know!.
Presentation transcript:

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 reserved. Permission is given to CS122 Winter 2009 staff and students to use and reproduce these notes for their own use.

Your class instructor and TA Instructor for this section: Office: Telephone: Your TAs are:

Remaining Activities Lab - Today No quiz this week Proficiency exam – Wednesday (in class)

Lab Parts Part 1, Sections –Loops, If Statements, Plots Part 2, Sections –Animations and Motion –2.4 Must Be Explained

Lecture Overview If Statements If If Else If Elif... Else Boolean operations

If Statements If statements allow programmers to choose different paths to follow in code, depending on the condition. If is true, do this. Sample Syntax: if then ; … ; end if;

If Statement Example If a is less than or equal to b, add a and b together.

If Statements If statements are different from loops. Loops repeat while a condition is true. If statements perform an action once if a condition is true. Also have the ability to branch off into multiple conditions.

If-Else Sample Syntax: if then ; … ; else ; … ; end if; If condition is true, perform the first set of instructions Otherwise, perform the other set of instructions

If-Else Example

If-Elif-…-Else Sample Syntax: if then ; elif then ; elif then ; : else ; end if; If condition is true, perform the first set of instructions. Otherwise if the second is true, perform the second set. So on until we get to the end.

If-Elif-...-Else If’s / Elif’s are processed in order from top to bottom. Similar to a piecewise, but we can specify many instructions. Good when we have many different conditions and the actions are different.

If-Elif-…-Else Example

Boolean Operations Until now, we’ve only needed to specify one condition in our loops and if statements. What if the condition depends on two things? Example: Do something if x greater than 0 and x less than 100.

Boolean Operations We can modify Boolean expressions in three ways: and, or, and not operations. We can use these operators in if statements, as well as for and while loops. Saw these operations in piecewise functions The result of each of these expressions: a and b: True only if both a and b are true a or b: True if at least one of a or b is true not a: Inverts (takes opposite of) the value of a

‘and’ / ‘or’ We have two keywords we can use to group conditions together. and or We say: if (x > 0 and x < 100) then … end if: TrueFalse True False a and ba or b a b a b TrueFalse True False a b a b Both Must Be TrueOne Must Be True

Example with ‘and’ Find the number of B’s and D’s.

Example with ‘or’ Finds the number of out of bounds errors.

Proficiency Exam Information Winter 2009

Proficiency Exam In class exam, during regular class hour The exam counts for approximately 36% of your final grade –The exam will be in two Maple TA quizzes. One quiz will have How did I do? Turned on. One part will have it turned off. The part where it is turned off will be the multiple choice or similar questions where getting feedback would make the question useless from an evaluation viewpoint.

Proficiency Exam For the exam, you will do two tests in Maple TA. One quiz will have How did I do? turned on. One part will have it turned off. The part where it is turned off will be the multiple choice or similar questions where getting feedback would make the question useless from an evaluation viewpoint.

Proficiency Exam Questions for the exam will be drawn from past quizzes, and from a small set of new questions. This means that everyone will know what the questions could be, ahead of time. They will also be able to prepare a plan for answering them, ahead of time.

Practicing All questions will be posted on Maple TA in practice form starting Tuesday July 20 and running through the exam period. Lab Solutions will be available on Blackboard Vista at that time. For exam security, we will turn off access to the practice quizzes while exams are being run in the labs. Access to Blackboard Vista will be turned off during the exam, as well.

Exam Security During the exam You must use the laptop (be it Mac or Windows) provided. You may not use your own computer. You may use Maple Maple TA Browse which has copies of the lab directions and lecture notes. No notes or other aids Blackboard access to the course turned off during the exam

Exam security Computer usage will be monitored, both by visual checks by course staff and by software monitoring built into the computers you use. Unlike the labs, we will be in full “Big Brother” mode during the exam: We will be able to watch what you do, log every key stroke and mouse click, and take movies and screenshots of what you are doing.

A reminder about cheating Unauthorized access to information for the exam will be a violation of the Academic Honesty policy. So will accessing unauthorized information non- electronically or any other form of cheating. The minimum penalty will be a reduction in the final grade for the course. We reserve the right to give you a course grade of F with no opportunity to withdraw, or to begin proceedings to expel you from the university. If you have concerns about your grade for the course, talk to your instructor.

Proficiency Exam Policy If you have a conflict or are unable to attend the scheduled exam due to a reasonable medical or personal excuse, you should contact your section instructor and arrange an alternative time as soon as possible. If you miss your exam and delay contacting your instructor until after the proficiency exam week has passed, our policy will be to give you a zero for the exam.

What you should do now Connect to class web page: Start up Maple 12 Read Lab 4 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 “MyLab4CS122”. This will create a file called MyLab4CS122.mw. Submit a copy to Blackboard site. 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.