CSCI N207 Data Analysis Using Spreadsheet

Slides:



Advertisements
Similar presentations
Windows XP / Microsoft Word Computer Applications.
Advertisements

PIIT Computer Science Summer Camp - Alice July 10, 2012 Brenda Parker Computer Science Department MTSU.
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials File Handling.
CIS101 Introduction to Computing Week 12. Agenda Your questions Solutions to practice text Final HTML/JavaScript Project Copy and paste assignment JavaScript:
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
HELLO WORLD: YOUR FIRST PROGRAM CHAPTER Topics  Hello World?  Creating a Unity Project –The Unity Project Folder  MonoDevelop: Unity's Code Editor.
Introduction to VB.NET Tonga Institute of Higher Education.
Python Programming Fundamentals
An Introduction to Textual Programming
COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Uploading Your Page to the Internet Configuring FTP on Dreamweaver.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Creating Projects in JCreator Computer Science 40S.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
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.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
Make a dice challenge! This is a starter activity and should take 5 minutes [ slide 1 ] 1.Log in to your computer 2.Open IDLE 3.Copy the code below in.
The assignment expressions. The assignment operator in an assignment statement We have seen the assignment statement: Effect: var = expr; Stores the value.
7. Data Import Export Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Designing a Relational Database 13.4 Page A database should be created based on a design  Three steps Determine what information should be stored.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Introduction to Programming
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
5a – While Loops Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Introduction to Programming Python Lab 6: Relational Operators and Boolean Variables 12 February PythonLab6 lecture slides.ppt Ping Brennan
Introduction to Programming Python Lab 8: Loops 26 February PythonLab8 lecture slides.ppt Ping Brennan
FILE MANAGEMENT NOTES. ACCESSING FLASH DRIVE  Put Flash Drive in the Computer  Start – Computer– Select it.
FOP: While Loops.
An Interactive Tutorial for SPSS 10.0 for Windows©
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Development Environment
Introduction to Programming
Scratch for Interactivity
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Introduction to Programming
Introduction to Programming
Variables, Expressions, and IO
How to Import an Excel File
Lecture 1: Introduction
Chapter 4 LOOPS © Bobby Hoggard, Department of Computer Science, East Carolina University / These slides may not be used or duplicated without permission.
Introduction to Programming
Review Tab Click on the Review tab to: - view the entire course - use Highwire to print the course or save the file to your computer This tab allows.
Chapter (3) - Looping Questions.
Introduction to TouchDevelop
Introduction to Programming
CSCI N207 Data Analysis Using Spreadsheet
funCTIONs and Data Import/Export
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
3.1 Basic Concept of Directory and Sub-directory
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Explain what touch develop is to your students:
CSCI N207 Data Analysis Using Spreadsheet
Programming Concepts and Database
2g – ComboBox Lingma Acheson CSCI N331 VB .NET Programming
Introduction to Programming
Running a Java Program using Blue Jay.
Introduction to Programming
Introduction to JavaScript
GCSE Computing.
Workshop for Programming And Systems Management Teachers
Presentation transcript:

CSCI N207 Data Analysis Using Spreadsheet Loops Department of Computer and Information Science IUPUI

For Loop for (var in list) {statement(s)} Get each value from the list, assign the value to a variable, then use the variable in the statement(s) To show the value inside of the loop, you must use the print function.

For Loop for (var in list) {statement(s)} Get each value from the list, assign the value to a variable, then use the variable in the expression

For Loop Exercise: use a “for loop” to print out even numbers between 1 and 10 Use a “for loop” to print out odd numbers between 1 and 10 Use a “for loop” to print out all the numbers from 10 to 0.

While Loop while (condition) {statement(s)} As long as the condition is true, run the statement(s) Exercise: use a while loop to print out even numbers between 1 and 10 Use a while loop to print out odd numbers between 1 and 10 Use a while loop to print out all the numbers from 10 to 0.

Save Code in .R File You can save your code into a .R file so that you code is stored in a separate place. Later, when you need to work on the code again, simply have R open up this file. Steps Create a script file: File -> New script An R Editor window will open. Type in code in the Editor window. Beware that now you have two windows open, one is R Console and the other is R Editor. Both windows can be moved on the screen. Sometimes one window may be hided behind another. If you cannot the other window, move the front window around until you see the other one.

Save Code in .R File Highlight the codes you want to run and click on “Run line or selection” button. The codes will be copied into R Console and run for you. Save the codes in R Editor: Highlight the R Editor window, and click on the save button. It will ask you for a file name. Find the folder you want to save to and give a file name. The file will be saved as a .R file, e.g. if the file name you entered is “loop”, the file saved will be loop.R Open up the .R file again: File -> Open script and locate the .R file.