Friday. Last class Some of what we covered: for loop nested for loops toast. The place from which you call a function affects what it can do!

Size: px
Start display at page:

Download "Friday. Last class Some of what we covered: for loop nested for loops toast. The place from which you call a function affects what it can do!"

Transcription

1 cs1251 Page 1 Friday Tuesday, February 18, :57 PM Last class Some of what we covered: for loop nested for loops toast The place from which you call a function affects what it can do! Classes: Certain types of objects keep popping up over and over again-- it's nice to know when we can expect object to contain similar properties... this is captured by the idea of "class". For example, all the objects in the 'entries' array used to create a menu items have the same properties, so we can think of them as belonging to the same class. When Google pops up an explanation about an object's method it usually shows the class of the object returned by the method: So... things may seem a bit overwhelming right now, but this idea of class gives us a way to organize our thoughts AND to know something about the properties and methods of a large number of objects. Here are the mains classes that we are going to care about: SpreadsheetApp (an object AND a class-- the object that controls interaction with the spreadsheet system) Spreadsheet: A collection of sheets-- this is the class that controls the menu Sheet: The individual spreadsheets (as indicated by the tabs on the bottom) Range: A collection of cells Here's a list of everything you can do with a Spreadsheet object: And a sheet object: And a range object: Let's see if we can SET a cell's value: function setcellvalue(row, col, newvalue){ var sheet=spreadsheetapp.getactivesheet(); // Assign current sheet to variable var cell = sheet.getdatarange().getcell(row,col); // Get cell from those defined

2 cs1251 Page 2 var oldvalue = cell.getvalue(); // Get the value from that cell cell.setvalue(newvalue); return(oldvalue); That's what happens when you call a function that tries to set another cell's value from WITHIN a cell's formula. There is another issue. The spreadsheet shows a LOT of cells, but most of them are actually undefined. There is a rectangle of cells (a range) Notice that this function returns an error if we try to read a cell outside the "data range": More about ranges: A range is a collection of cells. It is perfectly possible for a range of cells to be empty, or to contain only one cell. (In fact, there is no 'cell' class) Here are some methods that we can use to access various ranges method object class notes.getdatarange().getactiverange().getactivecell().getrange(with params) sheet&spreadsheet (uses active sheet) sheet & spreadsheet & spreadsheetapp sheet & spreadsheet sheet&(sort of) spreadsheet The rectangle containing all cells with data The currently selected range of cells The currently active cell (recall a single cell is still a range) The javascript equivalent of selecting a range of cells (comes in various forms-- more on that below).getcell(row, col) range (only) access an individual cell in a range-- this is useful because the row and col are relative to the range! So (1,1) is the first cell in that range..getrangebyname(name) spreadsheet (only) Review naming a datarange from lecture [find that num for them].getdatarange() [show example of going outside the range]

3 cs1251 Page 3.getActiveRange() We used this in the Marvin Snodgrass example. Let's combine this with toast and make certain we understand how it works (Note: toast is a method of a sheet-- and we want that to be the currently selected sheet): function getcurrentselection(){ var sheet = SpreadsheetApp.getActiveSpreadsheet(); var range=spreadsheetapp.getactiverange(); // we could have also used var range=sheet.getactiverange() sheet.toast("current selection is "+range.geta1notation()); Let's do another example, but this time add let's add the entries in the first column of our selection: function numberrows(){ var sheet = SpreadsheetApp.getActiveSpreadsheet(); var range=spreadsheetapp.getactiverange(); sheet.toast("current selection is "+range.geta1notation()); for(var row=1; row<=range.getnumrows();row=row+1){ var cell = range.getcell(row,1); cell.setvalue(row); Let's try to combine together a few different ideas. Create your own spreadsheet, create a custom script for that spreadsheet (be sure to use the create script for spreadsheet so you don't have to copy and paste the onopen() trigger. Now create a function that numbers the entries in the first column, makes those cells bold, and gives a light grey background "#AAAAAA", and sets the font size to be 14.The methods you will need are.setfontweight("bold").setbackground(color).setfontsize(size) When you are done modify the menu in your spreadsheet so it works from a custom menu. Back to the main narrative Here are the sorts of things you can do (don't try to memorize all these): clear all content/formatting copy sheet to another spreadsheet (remember a spreadsheet may contain multiple sheets) delete/insert columns/rows/sheets get active cell/range/selection/sheet/owner (un)hide columns or rows check permissions add/remove a menu set the active cell/range/selection/sheet get/set column/row widths sort data display info We can even extract information about a cell's formatting. Let's write a function that will find the vertical alignment of the data in a cell: function getcellvalignment(row,col){ var sheet=spreadsheetapp.getactivesheet(); return(sheet.getdatarange().getcell(row,col).getverticalalignment(

4 cs1251 Page 4 )); WARNING: the function remembers the return-value of the function until you close and open the browser (I don't make the rules-- I just report them!). This is where SpreadsheetApp.flush() comers in. Bummer! So what's the moral of the story? A javascript function called from a spreadsheet cell can NOT change anything! And even the values it reports might be STUCK in the last value observed! So what good is it? Well, under certain circumstances it CAN change things! It also lets us do logic that is more complicated than what the spreadsheet can handle. To do this, we're going to have to learn about more complicated control structures... The "for... in" construction: function addpropertyaftercreation(){ employee={ first : "Peter", last: "Dolan", age: 41, isprof: true employee.middle="christopher"; // Done here for(property in employee){ Logger.log(employee[property]); Notice the structure: for(<variable> in <object>){ <block of code> This will iterate through every property in an object <block of code> is run once for each property in an object There is NO guarantee about the order in which the properties will be visited What is the value of 'm'? function howmanytimes(){ employee={ first : "Peter", last: "Dolan", age: 41, isprof: true employee.middle="christopher"; // Done here var m = 0; for(property in employee){ Logger.log(employee[property]); m=m+1; Logger.log(m); The empty object: We can create an empty object using { Example: var myobj = {; Since objects can hold *anything* and you can add to them at will, this can be useful! Removing a property from an object:

5 cs1251 Page 5 This uses a command called 'delete'. This webpage: has an awesome explanation that explains *everything*... but it's too much for you right now. If you find yourself using javascript alot come back in a year and look it over... for now, only use delete to remove a property from an object and you'll be fine: function removing(){ var employee={ first : "Peter", last: "Dolan", age: 41, isprof: true ; employee.middle="christopher"; // Added middle here delete(employee.first); // removed first here for(property in employee){ Logger.log(property + " is " + employee[property]); Classes: Certain types of objects keep popping up over and over again-- it's nice to know when we can expect object to contain similar properties... this is done by "class" Look at the helpful popup given by Google. Methods (functions stored in the object) often return objects. The value after the colon is the "class" of the object returned by the method: Some Examples: Spreadsheet, Sheet, Range Every object of class 'Spreadsheet' Array: [ <property>, <property>,..., <property>] Or... with returns [ <property>, <property>, <property>,... ] Arrays are actually objects but there are a few things worth noting: Instead of strings, the properties are numbers The counting starts at 0 (it's a computer science thing!) You will use bracket notation most of the time (maybe always) They have a few other differences that won't matter to most of us. Conceptually arrays are lists (at least for the moment) of stuff. In javascript that stuff can be anything. Accessing values in arrays: Remember that the array starts at 0: function myarray(entry){ {first:"peter",last:"dolan"]; return(arr[entry]); We get an error on the spreadsheet side when we try =myarray(4) This is because google spreadsheets doesn't know how to deal with a java script object. This will work (although it's silly): function myarray2(entry){

6 cs1251 Page 6 {first:"peter",last:"dolan"]; return(arr[entry].last); The "for...in" construction and arrays the for(<var> in <obj>){<stuff> construction works for arrays too... HOWEVER there is NO guarantee that the array entries will be encountered in order function myarray3(){ {first:"peter",last:"dolan"]; for(property in arr){ Logger.log(property + " is " + arr[property]); Logger.log(arr[4]); //Show them how logger deals with objs A better way is this: function myarray4(){ {first:"peter",last:"dolan"]; var i; for(i=0;i<arr.length;i=i+1){ Logger.log(arr[i]); Notice the new type of for construction: for(<initialization>; <condition>; <changer>){ <block of code> Empty arrays: var emptyarr= []; multidimensional arrays (sort of) Since arrays can contain anything... they can also contain OTHER arrays This is SUPER powerful and gives you the ability to store tables of data (and even more complicated structures if you're perverse enough): var matrix = [ [0,1,2], [3,4,5], [6,7,8] ]; matrix[2][1] // the value is 7 Show LOTS of examples Arrays have more methods than general objects. You can find out how many elements are in an array using the '.length' property: WARNING! I AM NOT QUITE TELLING THE TRUTH, BUT THE DETAILS WOULD BE MORE CONFUSING THAN HELPFUL-- IF YOU DON'T DO ANYTHING WEIRD WITH ARRAYS THEN WHAT I HAVE SAID IS TRUE... OTHERWISE IT MAY BE WRONG Add a new element to the end of an array using the.push() method do NOT use delete to remove an element from an array-- it will leave a hole use.splice(<start>,<entries>) to remove elements (warning! Could be slow for big arrays) Some special arrays: Ranges from the spreadsheet show up as ONE argument-- but it's an array:

7 cs1251 Page 7 /* This function expects to be passed a range of cells */ function arrayargument(arr){ var mysum=0; for(var i= 0; i<arr.length;i=i+1){ for(var j = 0; j<arr[i].length;j=j+1){ mysum=mysum+arr[i][j]; return(mysum); The only problem is that the function will FAIL if we pass it just ONE entry /* This function is smarter*/ function mysum(arr){ if(typeof(arr)!="object"){return(arr); // SAFE var mysum=0; for(var i= 0; i<arr.length;i=i+1){ for(var j = 0; j<arr[i].length;j=j+1){ mysum=mysum+arr[i][j]; return(mysum);

Friday. remove element from beginning return its value

Friday. remove element from beginning return its value CS 1251 Page 1 Friday Friday, October 24, 2014 12:23 PM At the end of last class I asked the class to create a function that takes the value in row three, column 2 from a named data range, and then sets

More information

Monday. A few notes on homework I want ONE spreadsheet with TWO tabs

Monday. A few notes on homework I want ONE spreadsheet with TWO tabs CS 1251 Page 1 Monday Sunday, September 14, 2014 2:38 PM A few notes on homework I want ONE spreadsheet with TWO tabs What has passed before We ended last class with you creating a function called givemeseven()

More information

QUICK EXCEL TUTORIAL. The Very Basics

QUICK EXCEL TUTORIAL. The Very Basics QUICK EXCEL TUTORIAL The Very Basics You Are Here. Titles & Column Headers Merging Cells Text Alignment When we work on spread sheets we often need to have a title and/or header clearly visible. Merge

More information

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 [talking head] Formal Methods of Software Engineering means the use of mathematics as an aid to writing programs. Before we can

More information

A PROGRAM IS A SEQUENCE of instructions that a computer can execute to

A PROGRAM IS A SEQUENCE of instructions that a computer can execute to A PROGRAM IS A SEQUENCE of instructions that a computer can execute to perform some task. A simple enough idea, but for the computer to make any use of the instructions, they must be written in a form

More information

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. Guide to and Hi everybody! In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. This guide focuses on two of those symbols: and. These symbols represent concepts

More information

Wednesday. Wednesday, September 17, CS 1251 Page 1

Wednesday. Wednesday, September 17, CS 1251 Page 1 CS 1251 Page 1 Wednesday Wednesday, September 17, 2014 8:20 AM Here's another good JavaScript practice site This site approaches things from yet another point of view it will be awhile before we cover

More information

Slide 1 CS 170 Java Programming 1 Multidimensional Arrays Duration: 00:00:39 Advance mode: Auto

Slide 1 CS 170 Java Programming 1 Multidimensional Arrays Duration: 00:00:39 Advance mode: Auto CS 170 Java Programming 1 Working with Rows and Columns Slide 1 CS 170 Java Programming 1 Duration: 00:00:39 Create a multidimensional array with multiple brackets int[ ] d1 = new int[5]; int[ ][ ] d2;

More information

Here's an example of how the method works on the string "My text" with a start value of 3 and a length value of 2:

Here's an example of how the method works on the string My text with a start value of 3 and a length value of 2: CS 1251 Page 1 Friday Friday, October 31, 2014 10:36 AM Finding patterns in text A smaller string inside of a larger one is called a substring. You have already learned how to make substrings in the spreadsheet

More information

Post Experiment Interview Questions

Post Experiment Interview Questions Post Experiment Interview Questions Questions about the Maximum Problem 1. What is this problem statement asking? 2. What is meant by positive integers? 3. What does it mean by the user entering valid

More information

School of Computer Science CPS109 Course Notes Set 7 Alexander Ferworn Updated Fall 15 CPS109 Course Notes 7

School of Computer Science CPS109 Course Notes Set 7 Alexander Ferworn Updated Fall 15 CPS109 Course Notes 7 CPS109 Course Notes 7 Alexander Ferworn Unrelated Facts Worth Remembering The most successful people in any business are usually the most interesting. Don t confuse extensive documentation of a situation

More information

Max and Programming Is Max a Programming Language?

Max and Programming Is Max a Programming Language? There are several questions that come up from time to time on the Max discussion list. Is Max a real programming language? if so how do I do [loop, switch, bitmap, recursion] and other programming tricks

More information

Troubleshooting Maple Worksheets: Common Problems

Troubleshooting Maple Worksheets: Common Problems Troubleshooting Maple Worksheets: Common Problems So you've seen plenty of worksheets that work just fine, but that doesn't always help you much when your worksheet isn't doing what you want it to. This

More information

EXCEL PRACTICE 5: SIMPLE FORMULAS

EXCEL PRACTICE 5: SIMPLE FORMULAS EXCEL PRACTICE 5: SIMPLE FORMULAS SKILLS REVIEWED: Simple formulas Printing with and without formulas Footers Widening a column Putting labels and data in Bold. PART 1 - DIRECTIONS 1. Open a new spreadsheet

More information

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

Formatting Spreadsheets in Microsoft Excel

Formatting Spreadsheets in Microsoft Excel Formatting Spreadsheets in Microsoft Excel This document provides information regarding the formatting options available in Microsoft Excel 2010. Overview of Excel Microsoft Excel 2010 is a powerful tool

More information

Intro. Scheme Basics. scm> 5 5. scm>

Intro. Scheme Basics. scm> 5 5. scm> Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if

More information

X-FX Handler. Introduction 2

X-FX Handler. Introduction 2 X-FX Handler Introduction 2 Template storage structure. 4 Basic installations... 4 Installation variations... 5 Creating or modifying a template... 6 How X-FX Handler works 7 The interface.... 8 Using

More information

Arrays/Branching Statements Tutorial:

Arrays/Branching Statements Tutorial: Arrays/Branching Statements Tutorial: In the last tutorial, you created a button that, when you clicked on it (the onclick event), changed another image on the page. What if you have a series of pictures

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

APPM 2460 Matlab Basics

APPM 2460 Matlab Basics APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on

More information

Linked Lists. What is a Linked List?

Linked Lists. What is a Linked List? Linked Lists Along with arrays, linked lists form the basis for pretty much every other data stucture out there. This makes learning and understand linked lists very important. They are also usually the

More information

CODE MAROON TEST SEPT. 30, 2011 SURVEY RESULTS

CODE MAROON TEST SEPT. 30, 2011 SURVEY RESULTS CODE MAROON TEST SEPT. 30, 2011 SURVEY RESULTS SMS (text) Message 1. Respondents were asked if they received the Code Maroon test by SMS (text) message. The responses indicate that 93% of the respondents

More information

INTRO TO EXCEL 2007 TOPICS COVERED. Department of Technology Enhanced Learning Information Technology Systems Division. What s New in Excel

INTRO TO EXCEL 2007 TOPICS COVERED. Department of Technology Enhanced Learning Information Technology Systems Division. What s New in Excel Information Technology Systems Division What s New in Excel 2007... 2 Creating Workbooks... 6 Modifying Workbooks... 7 Entering and Revising Data... 10 Formatting Cells... 11 TOPICS COVERED Formulas...

More information

This lesson is part 5 of 5 in a series. You can go to Invoice, Part 1: Free Shipping if you'd like to start from the beginning.

This lesson is part 5 of 5 in a series. You can go to Invoice, Part 1: Free Shipping if you'd like to start from the beginning. Excel Formulas Invoice, Part 5: Data Validation "Oh, hey. Um we noticed an issue with that new VLOOKUP function you added for the shipping options. If we don't type the exact name of the shipping option,

More information

5.6.1 The Special Variable this

5.6.1 The Special Variable this ALTHOUGH THE BASIC IDEAS of object-oriented programming are reasonably simple and clear, they are subtle, and they take time to get used to And unfortunately, beyond the basic ideas there are a lot of

More information

Introduction to the workbook and spreadsheet

Introduction to the workbook and spreadsheet Excel Tutorial To make the most of this tutorial I suggest you follow through it while sitting in front of a computer with Microsoft Excel running. This will allow you to try things out as you follow along.

More information

MITOCW watch?v=kz7jjltq9r4

MITOCW watch?v=kz7jjltq9r4 MITOCW watch?v=kz7jjltq9r4 PROFESSOR: We're going to look at the most fundamental of all mathematical data types, namely sets, and let's begin with the definitions. So informally, a set is a collection

More information

Lab 4. Recall, from last lab the commands Table[], ListPlot[], DiscretePlot[], and Limit[]. Go ahead and review them now you'll be using them soon.

Lab 4. Recall, from last lab the commands Table[], ListPlot[], DiscretePlot[], and Limit[]. Go ahead and review them now you'll be using them soon. Calc II Page 1 Lab 4 Wednesday, February 19, 2014 5:01 PM Recall, from last lab the commands Table[], ListPlot[], DiscretePlot[], and Limit[]. Go ahead and review them now you'll be using them soon. Use

More information

Task 1. Set up Coursework/Examination Weights

Task 1. Set up Coursework/Examination Weights Lab02 Page 1 of 6 Lab 02 Student Mark Calculation HTML table button textbox JavaScript comments function parameter and argument variable naming Number().toFixed() Introduction In this lab you will create

More information

Like many institutions, University of Minnesota

Like many institutions, University of Minnesota ACRL TechConnect Janet Fransen, Megan Kocher, and Jody Kempf Google forms for staff self-assessment Creating customization Like many institutions, University of Minnesota recently adopted the Google Apps

More information

MITOCW watch?v=yarwp7tntl4

MITOCW watch?v=yarwp7tntl4 MITOCW watch?v=yarwp7tntl4 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality, educational resources for free.

More information

The Domino Designer QuickStart Tutorial

The Domino Designer QuickStart Tutorial The Domino Designer QuickStart Tutorial 1. Welcome The Domino Designer QuickStart Tutorial You've installed Domino Designer, you've taken the Designer Guided Tour, and maybe you've even read some of the

More information

CS103 Spring 2018 Mathematical Vocabulary

CS103 Spring 2018 Mathematical Vocabulary CS103 Spring 2018 Mathematical Vocabulary You keep using that word. I do not think it means what you think it means. - Inigo Montoya, from The Princess Bride Consider the humble while loop in most programming

More information

The Stack, Free Store, and Global Namespace

The Stack, Free Store, and Global Namespace Pointers This tutorial is my attempt at clarifying pointers for anyone still confused about them. Pointers are notoriously hard to grasp, so I thought I'd take a shot at explaining them. The more information

More information

Abdulbasit H. Mhdi Assistant lecturer Chemical engineering/ Tikrit University

Abdulbasit H. Mhdi Assistant lecturer Chemical engineering/ Tikrit University Abdulbasit H. Mhdi Assistant lecturer Chemical engineering/ Tikrit University Introduction To Microsoft Excel Getting started with Excel Excel and Word have a lot in common, since it s belong to the MS

More information

It Might Be Valid, But It's Still Wrong Paul Maskens and Andy Kramek

It Might Be Valid, But It's Still Wrong Paul Maskens and Andy Kramek Seite 1 von 5 Issue Date: FoxTalk July 2000 It Might Be Valid, But It's Still Wrong Paul Maskens and Andy Kramek This month, Paul Maskens and Andy Kramek discuss the problems of validating data entry.

More information

Copyright. For more information, please read the Disclosures and Disclaimers section at the end of this ebook. First PDF Edition, February 2013

Copyright. For more information, please read the Disclosures and Disclaimers section at the end of this ebook. First PDF Edition, February 2013 Copyright This ebook is Copyright 2013 Teresa Miller (the Author ). All Rights Reserved. Published in the United States of America. The legal notices, disclosures, and disclaimers in the front and back

More information

Creating accessible forms

Creating accessible forms Creating accessible forms Introduction Creating an accessible form can seem tricky. Some of the questions people commonly ask include: Can I use protected forms? How do I lay out my prompts and questions?

More information

Welcome to Excel Classified Employees Week Training May 24, 2013

Welcome to Excel Classified Employees Week Training May 24, 2013 Welcome to Excel 2010 Classified Employees Week Training May 24, 2013 Let's look at the ribbons... Home Insert Page Layout Formulas Data Review View Developer Format: Picture Tools Let's check out cool

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

JAVASCRIPT - CREATING A TOC

JAVASCRIPT - CREATING A TOC JAVASCRIPT - CREATING A TOC Problem specification - Adding a Table of Contents. The aim is to be able to show a complete novice to HTML, how to add a Table of Contents (TOC) to a page inside a pair of

More information

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS.

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS. 1 SPSS 13.0 for Windows Introductory Assignment Material covered: Creating a new SPSS data file, variable labels, value labels, saving data files, opening an existing SPSS data file, generating frequency

More information

Lab 2: Conservation of Momentum

Lab 2: Conservation of Momentum 3 Lab 2: Conservation of Momentum I. Before you come to lab... II. Background III. Introduction A. This lab will give you an opportunity to explore the conservation of momentum in an interesting physical

More information

Microsoft Access 2016 Intro to Forms and Reports

Microsoft Access 2016 Intro to Forms and Reports Microsoft Access 2016 Intro to Forms and Reports training@health.ufl.edu Access 2016: Intro to Forms and Reports 2.0 hours Topics include using the AutoForm/AutoReport tool, and the Form and Report Wizards.

More information

Intro. Speed V Growth

Intro. Speed V Growth Intro Good code is two things. It's elegant, and it's fast. In other words, we got a need for speed. We want to find out what's fast, what's slow, and what we can optimize. First, we'll take a tour of

More information

MAKING TABLES WITH WORD BASIC INSTRUCTIONS. Setting the Page Orientation. Inserting the Basic Table. Daily Schedule

MAKING TABLES WITH WORD BASIC INSTRUCTIONS. Setting the Page Orientation. Inserting the Basic Table. Daily Schedule MAKING TABLES WITH WORD BASIC INSTRUCTIONS Setting the Page Orientation Once in word, decide if you want your paper to print vertically (the normal way, called portrait) or horizontally (called landscape)

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Formatting a spreadsheet means changing the way it looks to make it neater and more attractive. Formatting changes can include modifying number styles, text size and colours. Many

More information

Graphing on Excel. Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version):

Graphing on Excel. Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version): Graphing on Excel Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version): The first step is to organize your data in columns. Suppose you obtain

More information

CS 200. Lecture 05. Excel Scripting. Excel Scripting. CS 200 Fall 2014

CS 200. Lecture 05. Excel Scripting. Excel Scripting. CS 200 Fall 2014 CS 200 Lecture 05 1 Abbreviations aka CWS VBE intra- inter- Also Known As Miscellaneous Notes Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

Web Evaluation Report Guidelines

Web Evaluation Report Guidelines Web Evaluation Report Guidelines Graduate Students: You are required to conduct a usability test for your final project in this course. Please review the project description and the evaluation rubric on

More information

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Spring Wednesday, June 18, 2014

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Spring Wednesday, June 18, 2014 CS 200 Lecture 07 1 Miscellaneous Notes Abbreviations aka CWS VBE intra- inter- Also Known As Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

Chris' Makefile Tutorial

Chris' Makefile Tutorial Chris' Makefile Tutorial Chris Serson University of Victoria June 26, 2007 Contents: Chapter Page Introduction 2 1 The most basic of Makefiles 3 2 Syntax so far 5 3 Making Makefiles Modular 7 4 Multi-file

More information

CS 200. Lecture 05! Excel Scripting. Miscellaneous Notes

CS 200. Lecture 05! Excel Scripting. Miscellaneous Notes CS 200 Lecture 05! 1 Abbreviations aka CWS VBE intra- inter- Also Known As Miscellaneous Notes Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

Adobe Dreamweaver CS3 English 510 Fall 2007

Adobe Dreamweaver CS3 English 510 Fall 2007 Adobe Dreamweaver CS3 English 510 Fall 2007 Important: Before going through this handout, you should create a WWW directory on your ISU e-mail account. Otherwise, you will not be able to upload and view

More information

Designing a Database -- Understanding Relational Design

Designing a Database -- Understanding Relational Design Designing a Database -- Understanding Relational Design Contents Overview The Database Design Process Steps in Designing a Database Common Design Problems Determining the Purpose Determining the Tables

More information

Math 395 Homework #1 Due Wednesday, April 12

Math 395 Homework #1 Due Wednesday, April 12 Math 395 Homework #1 Due Wednesday, April 12 LaTex is a typesetting system that is widely used by mathematicians. It has the ability to typeset just about any mathematical notation, as well as complex

More information

PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between

PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between MITOCW Lecture 10A [MUSIC PLAYING] PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between all these high-level languages like Lisp and the query

More information

EXCEL TIPS and TRICKS FROM MADDOG ENTERPRISES LLC

EXCEL TIPS and TRICKS FROM MADDOG ENTERPRISES LLC EXCEL TIPS AND TRICKS, COMPILED BY ED CRANE, AND UPDATED PERIODICALLY (LAST UPDATE, FEB 15 2008) 1) THE FORMULA BAR AND EDITING TEXT. 1a) Do you see what's called the "formula bar" just above the column

More information

Word: Print Address Labels Using Mail Merge

Word: Print Address Labels Using Mail Merge Word: Print Address Labels Using Mail Merge No Typing! The Quick and Easy Way to Print Sheets of Address Labels Here at PC Knowledge for Seniors we re often asked how to print sticky address labels in

More information

Programming language components

Programming language components Programming language components syntax: grammar rules for defining legal statements what's grammatically legal? how are things built up from smaller things? semantics: what things mean what do they compute?

More information

COMP2100/2500 Lecture 17: Shell Programming II

COMP2100/2500 Lecture 17: Shell Programming II [ANU] [DCS] [COMP2100/2500] [Description] [Schedule] [Lectures] [Labs] [Homework] [Assignments] [COMP2500] [Assessment] [PSP] [Java] [Reading] [Help] COMP2100/2500 Lecture 17: Shell Programming II Summary

More information

MITOCW watch?v=rvrkt-jxvko

MITOCW watch?v=rvrkt-jxvko MITOCW watch?v=rvrkt-jxvko The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

The following content is provided under a Creative Commons license. Your support

The following content is provided under a Creative Commons license. Your support MITOCW Lecture 8 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To make a donation

More information

CS3 Midterm 1 Fall 2006

CS3 Midterm 1 Fall 2006 Overall, you did good job on this exam. CS3 Midterm 1 Fall 2006 Standards and Solutions 20 10 0 8.0 30.0 28.0 26.0 24.0 22.0 20.0 18.0 16.0 14.0 12.0 10.0 Std. Dev = 5.34 Mean = 21.6 N = 133.00 MT1_SCL

More information

Professional Edition Tutorial: Basic Excel

Professional Edition Tutorial: Basic Excel Professional Edition Tutorial: Basic Excel Pronto, Visualizer, and Dashboards 2.0 Documentation Release 3/29/2017 i Copyright 2015-2017 Birst, Inc. Copyright 2015-2017 Birst, Inc. All rights reserved.

More information

Excel 2013 Beyond TheBasics

Excel 2013 Beyond TheBasics Excel 2013 Beyond TheBasics INSTRUCTOR: IGNACIO DURAN Excel 2013 Beyond The Basics This is a class for beginning computer users. You are only expected to know how to use the mouse and keyboard, open a

More information

12 Macros. Localmake. is an abbreviation for the two instructions. localmake "fred 87. local "fred make "fred 87

12 Macros. Localmake. is an abbreviation for the two instructions. localmake fred 87. local fred make fred 87 12 Macros I mentioned that the versions of for and foreach shown in Chapter 10 don t work if their instruction templates include stop or output commands. The problem is that we don t want, say, foreach

More information

CS1114: Matlab Introduction

CS1114: Matlab Introduction CS1114: Matlab Introduction 1 Introduction The purpose of this introduction is to provide you a brief introduction to the features of Matlab that will be most relevant to your work in this course. Even

More information

Chapter One: Getting Started With IBM SPSS for Windows

Chapter One: Getting Started With IBM SPSS for Windows Chapter One: Getting Started With IBM SPSS for Windows Using Windows The Windows start-up screen should look something like Figure 1-1. Several standard desktop icons will always appear on start up. Note

More information

Watch the video below to learn more about number formats in Excel. *Video removed from printing pages. Why use number formats?

Watch the video below to learn more about number formats in Excel. *Video removed from printing pages. Why use number formats? Excel 2016 Understanding Number Formats What are number formats? Whenever you're working with a spreadsheet, it's a good idea to use appropriate number formats for your data. Number formats tell your spreadsheet

More information

Usability Test Report: Bento results interface 1

Usability Test Report: Bento results interface 1 Usability Test Report: Bento results interface 1 Summary Emily Daly and Ian Sloat conducted usability testing on the functionality of the Bento results interface. The test was conducted at the temporary

More information

Spreadsheet Functions

Spreadsheet Functions Class Description This is an introduction to the use of functions in spreadsheets, with a focus on Microsoft Excel and Google Drive Spreadsheets. The main topics are arithmetic calculations and order of

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

Spring CS Homework 3 p. 1. CS Homework 3

Spring CS Homework 3 p. 1. CS Homework 3 Spring 2018 - CS 111 - Homework 3 p. 1 Deadline 11:59 pm on Friday, February 9, 2018 Purpose CS 111 - Homework 3 To try out another testing function, check-within, to get more practice using the design

More information

Create your first workbook

Create your first workbook Create your first workbook You've been asked to enter data in Excel, but you've never worked with Excel. Where do you begin? Or perhaps you have worked in Excel a time or two, but you still wonder how

More information

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO Chapter 1 : All about printing sheets, workbook, charts etc. from Excel VBA - blog.quintoapp.com Hello Friends, Hope you are doing well!! Thought of sharing a small VBA code to help you writing a code

More information

6.001 Notes: Section 17.5

6.001 Notes: Section 17.5 6.001 Notes: Section 17.5 Slide 17.5.1 Now, let's look at one example in which changing the evaluation model allows us to explore a very different kind of computational problem. Our goal is to show how

More information

Advanced topics, part 2

Advanced topics, part 2 CS 1 Introduction to Computer Programming Lecture 24: December 5, 2012 Advanced topics, part 2 Last time Advanced topics, lecture 1 recursion first-class functions lambda expressions higher-order functions

More information

Lesson 3 Transcript: Part 2 of 2 Tools & Scripting

Lesson 3 Transcript: Part 2 of 2 Tools & Scripting Lesson 3 Transcript: Part 2 of 2 Tools & Scripting Slide 1: Cover Welcome to lesson 3 of the DB2 on Campus Lecture Series. Today we are going to talk about tools and scripting. And this is part 2 of 2

More information

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Fall 2016

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Fall 2016 CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

How To Test Your Code A CS 1371 Homework Guide

How To Test Your Code A CS 1371 Homework Guide Introduction After you have completed each drill problem, you should make it a habit to test your code. There are good ways of testing your code and there are bad ways of testing your code. This guide

More information

CS1046 Lab 4. Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to:

CS1046 Lab 4. Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to: CS1046 Lab 4 Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to: Define the terms: function, calling and user-defined function and predefined function

More information

Recap We have been working with representing an organizational structure in a two-column configuration.

Recap We have been working with representing an organizational structure in a two-column configuration. CS 1251 Page 1 Monday Monday, September 22, 2014 10:42 AM Recap We have been working with representing an organizational structure in a two-column configuration. In order to pull useful information we

More information

Helping the Compiler Help You. Thomas Dy

Helping the Compiler Help You. Thomas Dy Helping the Compiler Help You Thomas Dy Programming do { programmer.write_code(); if(lazy) { sleep(); } compile_code(); } while(compiler.has_errors()); Compiler: Me no speaky English Programmer: Compiler,

More information

In further discussion, the books make other kinds of distinction between high level languages:

In further discussion, the books make other kinds of distinction between high level languages: Max and Programming This essay looks at Max from the point of view of someone with a bit of experience in traditional computer programming. There are several questions that come up from time to time on

More information

The following content is provided under a Creative Commons license. Your support

The following content is provided under a Creative Commons license. Your support MITOCW Lecture 23 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality, educational resources for free. To make a

More information

Setting Up Feedly - Preparing For Google Reader Armageddon

Setting Up Feedly - Preparing For Google Reader Armageddon Our choice is Feedly! We need our Feed Keeper - The storehouse for all of our market intelligence The key to our Market Research and intelligence system is a Feed Reader (or Keeper). For years Google Reader

More information

MITOCW watch?v=se4p7ivcune

MITOCW watch?v=se4p7ivcune MITOCW watch?v=se4p7ivcune The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

Computer Programming: C++

Computer Programming: C++ The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2003 Muath i.alnabris Computer Programming: C++ Experiment #7 Arrays Part II Passing Array to a Function

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #43. Multidimensional Arrays

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #43. Multidimensional Arrays Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #43 Multidimensional Arrays In this video will look at multi-dimensional arrays. (Refer Slide Time: 00:03) In

More information

Hot Budget. Version 2.1. User Guide For 2017 Version 2

Hot Budget. Version 2.1. User Guide For 2017 Version 2 Hot Budget Version 2.1 User Guide 4.8.17 For 2017 Version 2 Table of Contents Section 1 - Getting Started 5 Licensing 5 Setup 5 Section 2 - The Basics 10 Run-time Errors 10 Toolbars 11 Protection 12 File

More information

Copyright 2018 MakeUseOf. All Rights Reserved.

Copyright 2018 MakeUseOf. All Rights Reserved. The Beginner s Guide to Microsoft Excel Written by Sandy Stachowiak Published April 2018. Read the original article here: https://www.makeuseof.com/tag/beginners-guide-microsoftexcel/ This ebook is the

More information

GoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next.

GoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next. Getting Started From the Start menu, located the Adobe folder which should contain the Adobe GoLive 6.0 folder. Inside this folder, click Adobe GoLive 6.0. GoLive will open to its initial project selection

More information

Quiz 3; Tuesday, January 27; 5 minutes; 5 points [Solutions follow on next page]

Quiz 3; Tuesday, January 27; 5 minutes; 5 points [Solutions follow on next page] Quiz 3; Tuesday, January 27; 5 minutes; 5 points [Solutions follow on next page] 1. Does the Java expression x + y == z have a side-effect? If so, what is it? 2. Write a function named add that can add

More information

Creating joints for the NovodeX MAX exporter

Creating joints for the NovodeX MAX exporter Creating joints for the NovodeX MAX exporter (a step-by-step tutorial by Pierre Terdiman) p.terdiman@wanadoo.fr Version 0.3 I) Creating a hinge Here we'll see how to create a hinge joint compatible with

More information

BEGINNER PHP Table of Contents

BEGINNER PHP Table of Contents Table of Contents 4 5 6 7 8 9 0 Introduction Getting Setup Your first PHP webpage Working with text Talking to the user Comparison & If statements If & Else Cleaning up the game Remembering values Finishing

More information

In the first class, you'll learn how to create a simple single-view app, following a 3-step process:

In the first class, you'll learn how to create a simple single-view app, following a 3-step process: Class 1 In the first class, you'll learn how to create a simple single-view app, following a 3-step process: 1. Design the app's user interface (UI) in Xcode's storyboard. 2. Open the assistant editor,

More information

Chapter 2. Editing And Compiling

Chapter 2. Editing And Compiling Chapter 2. Editing And Compiling Now that the main concepts of programming have been explained, it's time to actually do some programming. In order for you to "edit" and "compile" a program, you'll need

More information