CS 145 Lecture 39 – Data Analysis
Agenda
- what ?s
- making a program runnable
- definitions of OOP
- country population analysis
TODO
- For a participation point, prepare a quiz question to share before tomorrow’s quiz. Topics we’ve covered since the last quiz all fall under the umbrella of objects.
Note
First we’ll look at making our Clickture application runnable.
As a software developer, you become very useful to society. People have problems, and they want machines to solve them! However, sometimes I feel like computer science is a supporting science without any compelling problems of its own. I grow jealous of my biologist, chemist, and psychologist friends. These are the folks swimming in things to study. To get out of my funk, I must recognize that I’m a human being and can identity and study problems even though I’m “just a software developer.”
For the remainder of our time today, we’re going to ask questions of a socially relevant dataset:
In your hands, you’ve got population data for all the countries in the world for each year from 1960 through 2014. What do you want to know? Compose a list of 5 questions you’d like to find answers to from this data.
Code
Country.java
/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'coderay' (>= 0) among 56 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0:/home/johnch/.gems', execute `gem env` for more information from /usr/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec' from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem' from ./coderay:24:in `'
Main.java
/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'coderay' (>= 0) among 56 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0:/home/johnch/.gems', execute `gem env` for more information from /usr/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec' from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem' from ./coderay:24:in `'
Haiku
An old man approached the gate
“She can have my place”