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.

Slides:



Advertisements
Similar presentations
Blackboard Hands-On Lab Session Karl R. Wurst Computer Science Department Daron Barnard Biology Department Center for Teaching and Learning Worcester State.
Advertisements

Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
Now we will introduce you to the computer program that you will use throughout the semester. This program will allow you to create a customized Study Plan,
CS 106 Introduction to Computer Science I 11 / 09 / 2007 Instructor: Michael Eckmann.
CS 106 Introduction to Computer Science I 03 / 28 / 2008 Instructor: Michael Eckmann.
Today’s quiz on 8.2 A Graphing Worksheet 1 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
Chapter 3 Planning Your Solution
Please open your laptops, log in to the MyMathLab course web site, and open Daily Quiz 16. IMPORTANT NOTE: If you have time left out of your five minutes.
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.
Hotmail Tutorial This tutorial aims to quickly cover some of the basic elements of web based using msn Hotmail - a free service Use the Index.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2010.
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.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
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.
General Programming Introduction to Computing Science and Programming I.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
CS 121 Engineering Computation Lab Lab 4 Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission is.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
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.
Please get out your completed 8.2B Graphing Worksheet 2 and pass it to the center aisle to be collected by the TA.
CS 121 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Summer, 2009 ©By the author. All rights reserved.
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.
C++ and Ubuntu Linux Review and Practice CS 244 Brent M. Dingle, Ph.D. Game Design and Development Program Department of Mathematics, Statistics, and.
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.
Mtivity Client Support System Quick start guide. Mtivity Client Support System We are very pleased to announce the launch of a new Client Support System.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2011.
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.
CS 121 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Winter, 2011 ©By the author. All rights reserved.
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.
CSE 1111 Week 3 CUP (Computer Use Proficiency) This week: Word and/or Excel no signups – just show up* Times (in 123 /124 NH) Fri 1/31 1:00 – 5:00 (in.
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.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
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.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2013.
SEARCH David Kauchak CS30 – Spring Admin Assignment 6 graded Assignment 7  1 extra day: Due 3/26 at 6pm  If you turn it in by the original due.
Development Environment
CS122 Engineering Computation Lab Lab 4
CS 121 Engineering Computation Lab Lab 5
CS 121 Engineering Computation Lab Lab 3
CS 121 Engineering Computation Lab Lab 2
CS123 Engineering Computation Lab Lab 4
Intro to PHP & Variables
Cookies BIS1523 – Lecture 23.
IPC144 Introduction to Programming Using C Week 2 – Lesson 1
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Building Web Applications
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
An Introduction to VEX IQ Programming with Modkit
CS 121 Engineering Computation Lab Lab 3
CMSC201 Computer Science I for Majors Final Exam Information
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
CSCI 203: Introduction to Computer Science I
Presentation transcript:

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 rights reserved. Permission is given to CS122 Spring 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:

Announcements Direct questions outside of lab to: –bbVista discussion boards, CLC, contact section instructor. –Writing to the course coordinator is like writing to Papadakis – too far removed to get noticed –Writing to cs122 mail list sends to all students or will be bounced and ignored.

Announcements All members of a group should be able to explain the answers the group gets and be able to knowledgably demonstrate how they were gotten. Graders reserve the right to give partial credit, or credit only to some when they spot-check.

Class Overview Lab 2 Part 0 (Repeat of Lab 1, Part 2) Solving with Inequalities Animations Lab 2 Part 1 Code Edit Regions Strings and Printing While Loops Tables

Solving With Inequalities Sometimes we solve equations with multiple solutions. We want to limit the solution set to certain criteria. –We can use inequalities! Example: Quadratic with positive/negative roots (Repeat of last week)

Solving With Inequalities Recall: To solve a system of equations, we give a set of equations to solve. (Repeat of last week)

Constraining Solutions (Repeat of last week)

Constraining Solutions We use ‘assuming’ when result is piecewise. This cuts the number of possible solutions: (Repeat of last week)

Animations Animations in Maple are just a list of plots. Steps for making animation: –Create a list of plots Each element represents one frame of animation Use plots[display]() to display the list in order (Repeat of last week)

Animations Example: (Repeat of last week)

Code Edit Regions A region which allows us to edit code in plain text, instead of “pretty print”. There are a few differences: All lines must end with colon or semi-colon –Semi-colon - ; - prints the result of the line to the screen –Colon - : - hides the output Use CTRL-E or CMD-E to execute to the block Show quick DEMO of creating code edit region

Code Edit Regions

Strings and Printing When writing code, we often want print out what is happening in our code. Strings are “strings” of characters surrounded by double-quotes Used by print commands to show us output. Print commands are like semi-colon, but allow for more complex combinations

Quick Overview of Strings

Printing Two types of print functions in Maple (for use today) –print Prints out a sequence of information –printf Lets us format strings and substitute numbers into strings

print()

printf()

While Loops While loops let us repeat a sequence of commands or operations The loop runs until a condition is met. Syntax: while do … end do;

While Loops

Tables Used in situations where we need to frequently add items to list. Main differences from lists: –Table can grow in size –Can use any value as an index You must be especially careful with tables because the index can be any type.

Tables

Putting it all together Given a list of the height, angle, and distance, find the length of the left wire. Assume we have wires of size 530 ft. We can cut them shorter but can’t combine them. So we want to check all our tower specifications to see if any guy wires will be too short. We’ll use While loops!

Final Comments When writing scripts, test your code every few lines Use print statements each step of the way to test your code Remember to comment your code so it is easier to read

What you should do now Connect to class web page: Start up Maple 12 Read Lab 2 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 “MyLab2CS122”. This will create a file called MyLab2CS122.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.

Next week – Take quiz 2! Take the second quiz! Go to CLC if you need face-to-face help! Don’t wait until the last minute!