INFO/CSE 100, Spring 2006 Fluency in Information Technology

Slides:



Advertisements
Similar presentations
Spreadsheet Basics Computer Technology.
Advertisements

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Schedule Collecting Data : Google Forms Chapter 13 Homework - Lab 1 Friday:
Excel Objects, User Interface, and Data Entry. ◦ Application Window  Title Bar  Menu Bar  Toolbars  Status Bar  Worksheet Window  Worksheet Input.
Microsoft Excel Computers Week 4.
Spreadsheets With Microsoft Excel ® as an example.
1 The Information School of the University of Washington Nov 27fit databases © 2006 University of Washington Database Intro INFO/CSE 100, Fall 2006.
1 The Information School of the University of Washington Nov 20fit spreadsheets © 2006 University of Washington Structured Data INFO/CSE 100, Fall.
Chapter 13 Fill-in-the-blank Computing: The Basics of Spreadsheets.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
Excel Projects 5 & 6 Notes Mr. Ursone. Excel Project 5: Sorting a List  Sorting: Arranging records in a specific sequence  The Sort command is on the.
Exploring Engineering Chapter 3, Part 2 Introduction to Spreadsheets.
SPREADSHEET BASICS SPREADSHEET BASICS What are the benefits of using a spreadsheet to solve a problem?
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Chapter 6.  If a cell style will be used over and over again it can be modified in the cell styles gallery  Home ⇒ Cell Styles ⇒ right-click a style.
1 Microsoft Excel An Introduction to Spreadsheets Lecture 18.
Test Your Tech A spread sheet: A. Only happens on laundry day. B. Is covered with food during holiday meals. C. Helps answer "what-if" questions. 1 D.A.
Today’s Announcements Assignment 8 is due Project 2 is due 7/27/04 We will be skipping chapter 22 Test 3 (chapters 18-21) will be on 7/29/04 Tip of the.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
Loops Robin Burke IT 130. Outline Announcement: Homework #6 Conditionals (review) Iteration while loop while with counter for loops.
CHAPTER 17 INTRODUCTION TO SPREADSHEETS. SPREADSHEETS Application Software designed to aid users in entering, moving,copying, labeling, displaying and.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
Chapter 14 Fill-in-the-blank Computing: The Basics of Spreadsheets.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Databases Databases are collections of information; our study repeats a theme: Tell the computer the structure, and it can help you! © 2004, Lawrence Snyder.
Spreadsheet I n Concepts & operations. Concepts n Workbook: Excel file n Worksheet: sheet n Row: 1-???? n Column: A - Z, AA - ?? n Cell n Cell address.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
ME 142 Engineering Computation I
Lesson 3: Using Formulas
Fluency with Information Technology
Formulas, Functions, and other Useful Features
An Array of Cells Spreadsheet is an array of cells
Chapter 6 Modifying Cell Styles
5.2 Microsoft Excel.
GO! with Microsoft Office 2016
Computer Fundamentals
Copyright © Bird Media LLC
Loops BIS1523 – Lecture 10.
Topics Introduction to Repetition Structures
Matrix 2015/11/18 Hongfei Yan zip(*a) is matrix transposition
GO! with Microsoft Access 2016
Matrix 2016/11/30 Hongfei Yan zip(*a) is matrix transposition
CSC 110 – Fluency in Information Technology Chapter 14 Fill-in-the-blank Computing: The Basics of Spreadsheets Dr. Curry Guinn.
Topics Introduction to Repetition Structures
Spreadsheet Basics Computer Technology.
While Loops BIS1523 – Lecture 12.
Spreadsheet Basics Computer Technology.
5.2 Microsoft Excel.
What is a Spreadsheet? A program that allows you to use data to forecast, manage, predict, and present information.
Fill-in-the-blank Computing: The Basics of Spreadsheets
Spreadsheet Basics Computer Technology.
Announcements Project 2’s due date is moved to Tuesday 8/3/04
Spreadsheet Basics Computer Technology.
Basic terms and structures
Topics Sequences Introduction to Lists List Slicing
Fill-in-the-blank Computing: The Basics of Spreadsheets
Spreadsheet Basics Computer Technology.
Spreadsheets, Modelling & Databases
Fill-in-the-blank Computing: The Basics of Spreadsheets
For loops Taken from notes by Dr. Neil Moore
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Topics Introduction to Repetition Structures
Topics Sequences Introduction to Lists List Slicing
Intro to Excel CSCI-150.
Chapter 6 Modifying Cell Styles
CSC1401 Manipulating Pictures 2
Introduction to Spreadsheet Terminology
Spreadsheet Basics Computer Technology.
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Presentation transcript:

INFO/CSE 100, Spring 2006 Fluency in Information Technology Structured Data INFO/CSE 100, Spring 2006 Fluency in Information Technology http://www.cs.washington.edu/100 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Midterm2 Review The terms index, myHeight, and dotWidth are valid variable names in Javascript -- True or False?!? 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Midterm2 Revisited 2. Consider this short block of Javascript code. Assume that the code has executed successfully. var k = 4; var grains = [1, 2, 4, 8, 16, 32, 64, 128]; var calculated = (grains.length >= 64); var lastPayment = 0; if (k < grains.length) { lastPayment = grains[4]; } else { lastPayment = undefined; } grains.length = 8 calculated = false lastPayment = 16 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Midterm2 Revisited var loopCount = 2; for (var i=0; i<loopCount; i++ ) { document.write("Loop "+i+"?"); } Is the body of this loop executed? What is printed out after the first iteration? Loop 0 How many times does the loop execute? 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Midterm2 Revisited Writing the Clamp function Constrain a list of numbers into a range function clamp(low, high, values) { for (var i = 0; i < values.length; i++) { if (values[i] < low) { values[i] = low; } else if (values[i] > high) { values[i] = high; } 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

Readings and References Fluency with Information Technology Chapter 13, Introduction to Spreadsheets References Access Database: Design and Programming by Steve Roman, published by O'Reilly 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

Keeping track of things The need for keeping track of items spurned the invention of writing Today people still manually keep track of items usually in the form of lists Shopping list Christmas card addresses Soccer team player roster Runs Batted In (RBIs) milk eggs Cheetos ... 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

tab-delimited file example 1100322-IL3RA-X D001 N N 1100322-IL3RA-X D002 G G 1100322-IL3RA-X D003 G G 1100322-IL3RA-X D004 G G 1100322-IL3RA-X D005 G G 1100322-IL3RA-X D006 G G 1100322-IL3RA-X D007 G G 1100322-IL3RA-X D008 G G 1100322-IL3RA-X D009 A G 1100322-IL3RA-X D010 N N 1100322-IL3RA-X D011 N N 1100322-IL3RA-X D012 N N 1100322-IL3RA-X D013 G G 1100322-IL3RA-X D014 A G 1100322-IL3RA-X D015 N N 1100322-IL3RA-X D016 N N 1100322-IL3RA-X D033 A G 1100322-IL3RA-X D034 A G 1100322-IL3RA-X D035 G G 1100322-IL3RA-X D036 A G 1100322-IL3RA-X D037 A A 1100322-IL3RA-X D038 G G 1100322-IL3RA-X D039 G G 1100322-IL3RA-X D040 G G ... Here is a list of common chromosomes and alleles used in the UCSC Genone project This is a HUGE list What do you do when you have to make a change?!? How easy is it to find duplicate data? Read? 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Spreadsheets are a powerful abstration for organizing data and compution A spreadsheet is a 2-dimensional array of cells... Its 3D with multiple worksheets The idea is that the rows or columns represent a common kind of data They will be operated upon similarly Adding more data of the same type means adding more rows or columns Often spreadsheets contain numbers, but text-only spreadsheets are useful too! 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

Looking for Similar Ideas Spreadsheets are not so unusual... The position (row/column) names the data, as with memory locations, variables, forms... Operating on all elements of a column (or row) is an iteration (although not using a world famous iteration!) Setting a cell to a formula is an (unevaluated) assignment statement with cells as variables The formula is an expression Functions are built-in spreadsheet programs 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Familiar Terminology formula row name cell column name references cells L2-W2 column heading 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Formulas Formulas are mathematical expressions that are filled into a cell They always start with an = sign You can use () to make them easier to read If the formula is broken you'll get an error or a red ? In the cell instead of an answer For complicated formulas, spreadsheets have built-in ones that you can use 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Using Fill Often one wants to repeat a formula for an entire column or row. You could copy and paste to replicate the formula over and over. Spreadsheets contain a fill feature, that you can access by grabbing the lower left corner and selecting down a column Or across a row. 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

Relative and Absolute Addresses References to cells happen in one of two ways.. Relative or Absolute F2 relative column, relative row F$2 relative column, absolute row $F2 absolute column, relative row $F$2 absolute column, absolute row Relative references change when pasted/filled Absolute references do not change 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Series Another handy feature of fill is that it can make it easy to make a series based on constraints Fill Sunday=>Monday, Tuesday, Wednesday, .. Fill 22 Feb=>23 Feb, 24 Feb, 25 Feb, ... More generally Series fill will even count using a constant Counting by odd sizes: gives 1st two items 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Sorting Data Sorting the data into some order is one of the most common operations Numbers go numerically Text goes alphabetically Data can be sorted in Ascending or Descending order Data can be sorted in second, third, or fourth order... First one column, then the second column and so on... 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Sort Example 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Adding Functions 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

Importing/Exporting Data Importing data is one of the most common ways to create a spreadsheet Two ways to import data Copy/paste Import function Spreadsheets will do a lot of work to interpret data into a table format for importing Import data from a text file Import data from a web query Among others... 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Import Wizard 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

How to organize the data? Lists and Spreadsheets are often known as “flat files” (although a good 2D/3D spreadsheet isn't really flat) Common problems with the flat file format Structural information is difficult to express All processing of information is “special cased” custom programs are needed Information repeated; difficult to combine Changes in format of one file means all programs that ever process that file must be changed eg, adding ZIP codes 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

Library example notice the redundancy from Access Database book, Steve Roman 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington

fit100-22-spreadsheets © 2006 University of Washington Why Study Databases? Databases solve those "flat file" problems Some of us want to compute All of us want access to information … Much of the archived information is in tables Databases enhance applications, e.g. Web Once you know how to create databases, you can use them to personal advantage Databases introduce interesting ideas 11/20/2018 fit100-22-spreadsheets © 2006 University of Washington