CSC 160 Computer Programming for Non-Majors Lecture #3b: Working with Pictures Prof. Adam M. Wittenstein

Slides:



Advertisements
Similar presentations
Using CrossCheck in Editorial Manager® Prepared by: Adam Nicely.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
HELPFUL HINTS FOR USING AND ADJUSTING PRICE LISTS 1.How to save a price list to your computer 2.How to print a price list (an.xls file) 3.How to print.
Microsoft FrontPage Monday January 28, The Basic FrontPage Setup.
Setting Up a Peer-to-Peer Network For Each PC –Install the Client for Microsoft Networks –This supports peer-peer networking Implement Sharing –In the.
How To Create A Web Page By: Mikeon Briddy & Darrius Jacobs April 10,2006 Mr. Barnett.
How to Take a Screenshot By Ashley Hudson Screenshot of this screen 
CSC 160 Computer Programming for Non-Majors Lecture #3a: Stepper, Words, Sentences (continued) Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #9: Booleans Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #4: Defining Variables Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Images: Another Form of Symbolic Data Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5c: Functions with Images Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #8: Animations I Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5: Defining Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 2: Numbers, Expressions, and Simple Programs Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 6: Structures Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #11: Conditionals II Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Introduction Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Syntax Rules Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3: Calling Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3c: Working with Pictures (continued) Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Draft Chapter: The UFO Example Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Section 1.3: Animating the UFOs Flight Prof. Adam M. Wittenstein
Committed to Shaping the Next Generation of IT Experts. Chapter 1: Introduction to PowerPoint Robert Grauer and Maryann Barber Exploring Microsoft PowerPoint.
CSC 160 Computer Programming for Non-Majors Lecture #10: Conditionals I Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Section 1.2: Drawing a UFO Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 4: Conditional Expressions and Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5b: Designing Programs Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #7: Variables Revisited Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 3: Programs are Functions Plus Variable Definitions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #2: What are Functions? Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3a: Stepper, Words, Sentences Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5a: Defining Functions on Words and Sentences Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #6: Function Composition Prof. Adam M. Wittenstein
Programming with Images (continued). Another teachpack – “tiles.ss” Download from the website: “ Save.
CSC 160 Computer Programming for Non-Majors Lecture #5 (continued): More on Writing Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #12: Syntax and Semantics Prof. Adam M. Wittenstein
PowerPoint: Tables Computer Information Technology Section 5-11 Some text and examples used with permission from: Note: We are.
Basic HTML The Magic Of Web Pages. Create an HTML folder  Make a folder in your H drive and name it “HTML”. We will save EVERYTHING for this unit here.
Laboratory Exercise 8- Carrying Out Presentations Office Productivity Tools 2 Laboratory Exercise # 8 Carrying Out Presentations Objectives: At the end.
Guided Lesson.  In this lesson, you will learn how to modify existing bullets, insert new bulleted and numbered lists, select symbols as bullets, and.
Website Designing Using Ms FrontPage FrontPage 2003 Create a Web site with FrontPage.
Windows Basics: Desktop, Taskbar and Window
Tonga Institute of Higher Education IT 141: Information Systems CS Students Lecture 2: Microsoft Word.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
HTML.
PowerPoint How To: Editing Literature to Incorporate Mathematic Concepts Created by: Selena Empey.
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
Saving and printing Section 4. Objectives Student will learn about print a web site, download files from the internet.
Lecture # 3 HTML and Arrays. Today Questions: From notes/reading/life? From Lab # 2 – Preview of Lab # 2 1.Introduce: How do you make a Web Page?: HTML.
CSC 160 Computer Programming for Non-Majors Chapter 8: Scheme Language Review Prof. Adam M. Wittenstein
A guide to creating a power point display Essentials Ctl M =New Slide: a new slide can be inserted. It is placed after the slide that you are viewing.
Website Editing From Gingerweb The Image Gallery.
Saving Work to Your School Server Click through this presentation at your own speed. Use it as a review or a guide while saving a project.
Chapter 13: AutoCAD DesignCenter. After completing this Chapter, you will be able to use the following: Overview of DesignCenter Container, Content Type.
Web Design-Lecture3-QN-2003 Web Design Enhancing a Website.
Creating a Self-Running CD using PowerPoint 2003 Conyers Bull Multimedia Services at The Citadel.
Learning Aim C.  In this section we will look at some simple client-side scripts, browser compatibility, exporting and compressing and suitable file.
HTML. Hyper Text Markup Language Markup your text document The markup is the tag Hyper text means you can jump from place to place Programming language.
An Interactive Tutorial for SPSS 10.0 for Windows©
Online PD Basic HTML The Magic Of Web Pages
How to Add pictures to Canvas discussion
How to create a web page using word …
PowerPoint: Tables and Charts
Instructions How to add new slides to this presentation
Instructions How to add new slides to this presentation
Instructions How to add new slides to this presentation
More to Learn Creating a shortcut
Log on to Typing.com Type for 10 minutes
Presentation transcript:

CSC 160 Computer Programming for Non-Majors Lecture #3b: Working with Pictures Prof. Adam M. Wittenstein

A preview of today… So far we called pre-defined functions with numbers, words, and sentences. Today, we call pre-defined functions with images (pictures and shapes). Then, we will see how to define variables in Scheme.

Data Type: Image Another type of data. Fun to process images. Images are values like numbers, booleans, words, or sentences – they can be used inside expressions. Usually given names, since the same image can be used with several different functions. There are predefined functions to create shapes. Besides that, all other images (pictures) are inserted as follows:

Inserting Images You cannot type in images the way you type in a number or a word. To insert an image into a program, move the blinking caret to the place in your program where you want the image, and select the Insert Image item from the Special menu. DrScheme will then provide a dialog for selecting an image file. After you have selected a file, the image will be inserted at the blinking caret.

I. Calling Functions with Images

Calling Functions involving Images Once you have inserted the image (usually a picture), it is treated the same way as any other (simple) data type. You can use image objects as arguments in a function. Image objects can be the result of a function.

Install two teachpacks Open Internet Explorer and type in the website, Save the file to the folder C:\ProgramFiles\PLT\Teachpack. Then in DrScheme, go to “File >Install.plt File > File > tiles.plt”. Now, as for any teachpack, choose “Language -> Add Teachpack -> tiles (bottom one)” and click Run. Also, add the “world.ss” teachpack. Choose “Language -> Add Teachpack -> htdp -> world” and click Run.

Some “tiles.ss” functions reflect-horiz : image -> image reflect-vert : image -> image image-beside : image image -> image image-above : image image -> image rotate-cw : image -> image rotate-ccw : image -> image rotate-180 : image -> image

Exercise 1: Calling Image Functions Insert a picture into your DrScheme file either from your computer or a website. Insert a picture into your DrScheme file either from your computer or a website. Find the horizontal mirror image of the picture. Find the horizontal mirror image of the picture. Put your picture next to itself. Put your picture next to itself. Put your picture next to its horizontal mirror image. Put your picture next to its horizontal mirror image.

III. Preparing for Next Class

In summary… Pictures have to be inserted. They cannot simply be typed in like numbers, words, and sentences can. However, after inserting them, they are treated like any other data type. Next time… More practice with images Defining variables

Homework for next time… No written assignments. Readings: –Read the article on Pair Programming.Pair Programming –Read Sections of How to Design Programs.Sections –Read Chapter 4 of Simply Scheme.