wed week 9
DESCRIPTION
Wed Week 9. Alice Project Options: Project of the Stars Submit by Wed 11:59 Week 9, also submit questions RE-SUBMIT for regular deadline Regular Submit by Sunday 11:59 of START of week 10 (4/11) Submit reflections one day later ( shh …) - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/1.jpg)
Wed Week 9
• Alice Project Options:– Project of the Stars
• Submit by Wed 11:59 Week 9, also submit questions• RE-SUBMIT for regular deadline
– Regular• Submit by Sunday 11:59 of START of week 10 (4/11)• Submit reflections one day later (shh…)
• Week 10: Final Tech and Society (due Thursday 11:59)– Up now
![Page 2: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/2.jpg)
What’s Left
• Excel• RETURN to Alice!– Let’s connect Excel things to Alice!– VLOOKUP columns and Bud frogs• A new solution
• This is “new stuff” but ALSO review for the final!
![Page 3: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/3.jpg)
I’ve made a Pivot Chart thusly:
![Page 4: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/4.jpg)
Suppose I play create one like this:
![Page 5: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/5.jpg)
Which table will result?
1st quart
er
2nd quarter
3rd quarter
4th quarter
01000020000300004000050000600007000080000 Frank
GeorgeGraceMaryNancyPeterSamSandy
Frank
GraceNancy Sa
m0
1000020000300004000050000600007000080000
1st quarter2nd quarter3rd quarter4th quarter
![Page 6: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/6.jpg)
Match your PID (from scantron) to name (from classlist)
• In one sheet, I have the midterm scanned data– I’ve used if statements to assign points per question and
summed them to get exam points• In another sheet I have the downloaded class roster – (which usually has some people who didn’t take the
exam – not the same number of rows)– It has PID and Name on each row
• Goal: Add a column in midterm sheet with the matching name for each student
![Page 7: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/7.jpg)
![Page 8: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/8.jpg)
What commands would you use to fill A3?
A. An IF commandB. An IF command with nested IFsC. A VLOOKUP commandD. A VLOOKUP command with an IF nested in itE. A COUNTA function
![Page 9: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/9.jpg)
Which best describes the processimplemented by VLOOKUP?
A. Two nested loop tilesB. A loop tile with an if statement in itC. An if statement with a loop in itD. A series of if statements
![Page 10: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/10.jpg)
To calculate A3= VLOOKUP(B3,classList!A$1:B$572,2,TRUE)
For all items_in_classList_ColA one at a time If item_in_classList_ColA == midterm!B3 midterm!A3’s value is classList!B(index) else Do Nothing
![Page 11: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/11.jpg)
Chapter 2: Working with Large Worksheets and Tables
• A lot of this material is just “hands on” – How do I do that in Excel– You can do that in Excel?
• Figure it out now… you won’t remember it unless you use it regularly– Which you won’t– Google “How do I do XXX in Excel 2010”
• Critical:– If you didn’t have more data than fits on the screen, you
probably wouldn’t bother with Excel…
![Page 12: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/12.jpg)
Things Alice prepared you to do
• “Debug” how to freeze rows/columns– Who can remember when you highlight say row 5 and select
freeze panes• Will it keep rows 1-4 always visible or 1-5?• Try one, observe, know what to try next if it doesn’t go as you want
it…
• Lock cells:– Boolean condition attached to cell: property – on or off
(Alice had properties too!)• Abstraction (breaking big problems into smaller ones)– Excel file -> worksheets
![Page 13: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/13.jpg)
Find and Replace
• Question 32 was tricky. Anyone who got it wrong (0 points) should actually get 0.5 points
Not really!
![Page 14: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/14.jpg)
Excel’s find and replace command involves use of which of the following computing concepts?
If statements Looping ParametersA XB X XC X X XD X XE X X
![Page 15: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/15.jpg)
Which of the following Excel features involve conditional (if statement) actions?
A. Average ( =Average(A1:A30))B. Sorting Data (=Sort(A1:A30))C. AutoFilters (only show freshmen, female
flute players)D. More than one of the above
![Page 16: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/16.jpg)
A challenge: Create the Budweiser commercial in 2 lines of code
• Previously, with an if statement…
![Page 17: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/17.jpg)
Not good style…Relies on specific names Three method calls to “say”
All same EXCEPT different parameter
![Page 18: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/18.jpg)
Index: An indicator of “where” something is
• Index of textbook hasentries saying where tolook for specific entries
• Lists (also called arrays)in programming also “find” their entries viaan index: 0, 1, 2, 3, …
![Page 19: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/19.jpg)
Alice will give you an object out of a list, if you give it the index
• Drag the froggies list over to replace the “frog” object– A list pops up, select ith item from list– Select which item
There are3 items:
0, 1 and 2*
* In computing we always count starting at zero
![Page 20: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/20.jpg)
So, these are equivalent given my list like this:
![Page 21: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/21.jpg)
We can create lists of “related” things and loop over them using the index
![Page 22: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/22.jpg)
Counted Loop: The Advanced Version• We want to loop over three things:
• But we need access to the “index” of our counted loop (click show complicated)
• index (a number) will have the values: 0 first time through loop1 second time through loop2 third time through loop
![Page 23: Wed Week 9](https://reader030.vdocuments.site/reader030/viewer/2022033100/568163b2550346895dd4c9ae/html5/thumbnails/23.jpg)
So which code will make create our “Budweiser commercial”?