CS 1150 – Lab #8 – Using Algorithms for Painting

Slides:



Advertisements
Similar presentations
CS 1150 – Lab #4 – Logic Circuits TA – Sanjaya Wijeratne – Web Page -
Advertisements

CS 1150 – Lab #15 – Networking TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #13 – Artificial Intelligence TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #16A & 16B – HTML TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #16A & 16B – HTML TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #2 – Exploring Number Systems TA – Sanjaya Wijeratne – Web Page -
Introduction to Computer Programming I CSE 113
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
CS 232 Geometric Algorithms: Lecture 1 Shang-Hua Teng Department of Computer Science, Boston University.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
CS 1150 – Lab #2 – Exploring Number Systems TA – Sanjaya Wijeratne – Web Page -
CS 1150 – JavaScript Programming Lab TA – Sanjaya Wijeratne – Web Page -
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
CS 1150 – JavaScript Programming Lab TA – Sanjaya Wijeratne – Web Page -
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
CS 106 Introduction to Computer Science I 01 / 25 / 2010 Instructor: Michael Eckmann.
CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
CS 101: Introduction to computer programming and utilization Abhiram Ranade.
CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #8 – Using Algorithms for Painting TA – Sanjaya Wijeratne – Web Page -
Data Structures and Algorithms in Java AlaaEddin 2012.
CS 1150 – Lab #12B – Databases TA – Sanjaya Wijeratne – Web Page -
Computer Networks CNT5106C
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
CMSC 104, Version 9/011 Introduction CMSC 104 Problem Solving and Computer Programming Fall 2001.
CS 201 Accelerated Introduction to Computer Science LECTURE 1 GEORGE KOUTSOGIANNAKIS 1 Copyright: FALL 2016 Illinois Institute of Technology/ George Koutsogiannakis.
CS 1150 – Lab #4 – Logic Circuits TA – Sanjaya Wijeratne – Web Page -
Computer Network Fundamentals CNT4007C
Course Information EECS 2031 – Section A Fall 2017.
Computer Engineering Department Islamic University of Gaza
CMSC104 Problem Solving and Computer Programming Spring 2008
CS101 Computer Programming I
Introduction to Programming
C Programming.
Lab Introduction Installing Python
Computer Networks CNT5106C
PROBLEM SOLVING AND PROGRAMMING
Computer Programming (CS-161)
CSC 135 section 60 or CSC Fall 2017.
Course Information Mark Stanovich Principles of Operating Systems
Computer Science 102 Data Structures CSCI-UA
Welcome to CS 1010! Algorithmic Problem Solving.
FINAL EXAM INFORMATION
CS190/295 Programming in Python for Life Sciences: Lecture 1
Welcome to CS 1010! Algorithmic Problem Solving.
Computer Networks CNT5106C
Welcome to CS 1340! Computing for scientists.
Welcome to CS 1010! Algorithmic Problem Solving.
CMSC 104 Problem Solving and Computer Programming Fall 2010
C Programming.
Welcome to CS 1301! Principles of Programming I.
Welcome to CS220/MATH 320 – Applied Discrete Mathematics Fall 2018
CMSC104 Problem Solving and Computer Programming Spring 2010
Introduction to Computers SPRING 2019
Accelerated Introduction to Computer Science
CMSC104 Problem Solving and Computer Programming Fall 2009 Section 2
Problem Solving and Computer Programming
Introduction CMSC 104 Problem Solving and Computer Programming
Computer Networks CNT5106C
CSCE 206 Lab Structured Programming in C
CMSC104 Problem Solving and Computer Programming Spring 2010
Warmup Write a function to add two integer parameters and return the result.
Introduction CMSC 104 Problem Solving and Computer Programming
New Student Orientation
CS 232 Geometric Algorithms: Lecture 1
Presentation transcript:

CS 1150 – Lab #8 – Using Algorithms for Painting TA – Sanjaya Wijeratne E-mail – wijeratne.2@wright.edu Web Page - http://knoesis.org/researchers/sanjaya/

TA Labs, Office Hours Laboratory Polices Lab Hours 2:30 PM - 4:20 PM, Monday and Friday at Room 320 - Oelman Hall TA Office Hours 4:40 PM - 5:40 PM, Monday and Friday at Room 316 - Russ Engineer Center By appointment – Please email to wijeratne.2@wright.edu Refer to CS 1150 Course Syllabus for Class and Laboratory Policies Zero tolerance policy for Academic Misconduct – All parties will get 0% marks CS 1150 - Lab 2 - Exploring Number Systems

Lab # 8 Overview Learn How to use Palgo and Palgo Programming Do Activities and Complete Exercises 1, 2, 3 and 4 Write a Top-down Design for Sorting a list of Names into Alphabetical Order Lab #8 Due Date - Oct 14, 2013 11:55 AM CS 1150 - Lab 2 - Exploring Number Systems

How to Submit Lab # 8 Hard copy (Preferred) Pilot When you complete, hand it over to me Pilot Go to Pilot Course Page and Use Dropbox Submission Link to upload your files My Mailbox at CS Department Go to CS Department Front Desk and ask them to put your assignment into my mailbox – Please write my name on your assignment (TA – CS 1150 – Sanjaya Wijeratne) CS 1150 - Lab 2 - Exploring Number Systems

Programming – Why We Need it? Human Communication VS Machine Communication Logic Gates – AND, OR, XOR, NOT 000000 00001 00010 00110 00000 100000 MOV ax, opr1 ADD ax, bx int x = a + b CS 1150 - Lab 2 - Exploring Number Systems Source – http://trycatch22.com/blog/the-computer-architecture-analogy-part-4-assembly-programming/

Palgo Applet’s Programming Language Uses special keyword constructs – Eg – color, goto, pen down, repeat times, end etc. Those have special meanings Syntax of the program should be correct to run it without errors Special constructs to define functions (not covered) and loops CS 1150 - Lab 2 - Exploring Number Systems

Palgo Applet’s Language – Loop Instructions CS 1150 - Lab 2 - Exploring Number Systems

Exercise 1 Corrections Question 2 – Section (b) Draw a line from 7,2 to 17,2 Question 2 – Section (d) Draw a vertical line starting at 7,2 NOTE – In all Coordinates, the Column is listed first, then the Row CS 1150 - Lab 2 - Exploring Number Systems

Exercise 1 Help – Commands to Use Read page 104 in Lab 8 color – Changes the Color of the Pen. Eg – color “red” pen down – Starts coloring squares with color selected goto – Moves the Pen to a Cell (Jumps to a Cell). Eg – goto 1 19 up/down/left/right – Moves the Pen X number of cells in the given direction. Eg – up 20 CS 1150 - Lab 2 - Exploring Number Systems

Exercise 2 Help – Commands to Use Read page 105 – 107 in Lab 8 Open Example 4 – Squares and alter it x = 5 – Setting variable x’s value to 5 random(256) – Select a random value from 1 to 256. Eg – r = random(256) x = x + 1 – Add 1 to variable x CS 1150 - Lab 2 - Exploring Number Systems

Exercise 2 Help – Commands to Use Cont. repeat 3 times – A loop that executes the statements in its body 3 times end – Stops the loop square(x) – Invoke square function using variable x. random(256) was also a function, we invoked it with the value 256 instead of a variable. CS 1150 - Lab 2 - Exploring Number Systems

Exercise 3 Help Start the letter T at coordinate 1,1 Start the letter H at coordinate 7,1 and Start the letter E at coordinate 12,1 Commands to Use – color, pen down, goto, up/down/left/right CS 1150 - Lab 2 - Exploring Number Systems

Exercise 4 Help Question 7 – If you stand 10 – 15 feet away from your computer, the ragged line would look more like a straight line. Omit Question 8 Write a Top-down Design for Sorting a list of Names into Alphabetical Order CS 1150 - Lab 2 - Exploring Number Systems

Additional Help Chapter 7 – Problem Solving and Algorithms Slides by Ms. Karen Meyer discussed in Class Chapter 7 of Course Text Book – Problem Solving and Algorithms CS 1150 - Lab 2 - Exploring Number Systems

Questions ? If you have questions, please raise your hand, Colin or myself will come to help you CS 1150 - Lab 2 - Exploring Number Systems