Expected 4 year cost of
college
Loan amount
200,000
160,000
0.12 Monthly interest rate
Annual interest rate
0.0100
of monthly
10 Number
payments
Number of years to pay
back loan
Discount rate
120
0.07
Go to college
salary
Age Annual
with degree
18
19
20
2
Expected 4 year cost of
college
Loan amount
60,000
Annual interest rate
0.0376 Monthly interest rate
28,000
0.0031
of monthly
10 Number
payments
Number of years to pay
back loan
Discount rate
120
0.07
Go to college
salary
Age Annual
with degree
18
19
20
2
Coding Drills 5
Coding exercises that focus on procedural abstractions -i.e., defining and using procedures. This drill introduces
the use of a function - i.e., a procedure that returns a
value. The template provides a solution to the sum-asublist problem
Homework: For Your Portfolio
Create a page called Blown to Bits Chapter 2 under the Homework category of your Portfolio and write
answers using complete sentences to the following questions on that page. Create a page called Blown to
Bits Chapter 2 under
Coding Drills 2
Coding exercises focusing on if-else statements. The UI
is given. For these drills, the app will get the users input
from the Textbox (Type input here), perform some kind of
computation on the input, and display the result in the
Label (Ou
Note: This set of drills will soon be revised to include Firebase instead of TinyWebDb.
Coding Drills 6
Coding exercises that focus on using the TinyDb and
TinyWebDb components. The UI allows the user to input a
tag/value pair and includes buttons to stor
Homework: For Your Portfolio
Keep these questions in mind as you read Chapter 4. For each question, write a short answer and post
your answers on a page called Blown to Bits, Chapter 4 on your portfolio. Don't worry if you think you
don't know the right a
1.
1 point
A video-streaming Web site uses 32-bit integers to count the number of times each video has been
played. In anticipation of some videos being played more times than can be represented with 32 bits, the
Web site is planning to change to 64-bit i
Blown to Bits Chapter 5 Vocabulary
AES: advanced encryption standard, a symmetric 128-bit block data encryption technique
certification authority: (CA), a trusted organization or company that issues digital certificates
used to create digital signatures a
3.03 Representing Images
answer the following questions:
1.
Decode this message by converting it from binary to ASCII: 1000001 1110000 1110000 0100000
1001001 1101110 1110110 1100101 1101110 1110100 1101111 1110010 0100000 1010010 1001111
1000011 1001011
2.10 Hardware Abstractions: Logic Gates
Answer these questions:
1.
(POGIL) Consider these three things: The OR gate (i.e., the physical circuit), the Boolean OR
function (as defined by its truth table), and the OR symbol. How would arrange them from most
3.02 Paint Pot Tutorial
Write brief answers to the following questions.
1. Explain the meaning of the statements shown here, both in pseudocode and App Inventor. For
example, suppose the variableX has the value 10 before the statement is executed. What va
2.06 Algorithm Basics
Answer these questions:
1.
(POGIL) Suppose you had a list of positive numbers such as 5, 10, 12, 13, 6, 7, 1, 3, 2, 1. And
suppose for each of the numbers in the list you added the number to a running total if it is even and
subtract
2.08 Abstraction
Answer these questions:
1.
Write an explanation of abstraction, including at least one example, in your own words.
Answer
An abstraction is something that represents a more complex concept/object.
2.
Give 2-3 examples of abstractions in e
2.09 Binary Numbers
Answer the following questions:
1. Figure out what decimal value is represented by the following binary number 0011 1010 0011
Answer
931
2. Represent the decimal value 517 as a binary number.
Answer
1000000101
3. The binary number syst
Technical Terminology
Computational artifact - an object created by a human being that involves the use of
computation in some way, for example a mobile app or a web page.
Event-driven programming - a programming approach whereby the program's behavior is
2.05 Mobile Apps and Mobile Devices
Answer the following questions:
1. Give an example of a special purpose computer that you are familiar with and briefly describe its hardware
and its software.
Answer
One special purpose computer that I use on a daily b
Blown to Bits Unit 4 Vocabulary
ad hoc: when used to describe programming, it means a quick fix for a problem, not usually the
best example that will sustain an issue.
database: a collection of information organized in such a way that a computer program c
2.02 I Have a Dream Tutorial
Answer the following questions:
1. In your own words, describe what event driven programming is. What event handler was used in the
I Have a Dream app? How was it used?
Answer
Event driven programming is a method of programmin
Blown to Bits Chapter 3 Vocabulary
algorithm: a formula or set of steps for solving a particular problem.
analog: a device or system that represents changing values as continuously variable physical
quantities
ASCII: a code for representing English charac
Blown to Bits Chapter 1 Questions
This chapter makes the point that today everything is digital - that is, everything is represented
by binary digits or bits. And it provides some provocative examples of the societal implications of
this digital explosion
Final Exam
CS 201, Fall 2008
You have 150 minutes.
Show your work and explain all of your answers. Good work often earns partial credit. A correct
answer with no explanation often earns little or no credit.
When asked to explain something, explain with as
Exam 3 Answers
CS 201, Fall 2010
Compare our various sorting algorithms. Which is best?
Answer: Merge sort is (n log n), but requires a lot of extra space. Quicksort is (n log n)
if the pivot is chosen carefully (e.g. using the selection algorithm), but c
Exam 2
CS 201, Spring 2009
This exam begins for you when you open (or peek inside) this packet. It ends at 11:59 PM
on Thursday 2009 May 21. Between those two times, you may work on it as much as you like. I
recommend that you get started early and work o
Exam 2 Answers
CS 201, Fall 2010
In the AVL trees below, keys are shown but values are not. Following our standard algorithm,
insert the key 5 into the following AVL tree and restore balance.
Answer: [After insertion, node 2 is out of balance in the RR se
Exam 2
CS 201, Fall 2010
You have 60 minutes.
Show your work and explain your answers. Good work often earns partial credit. A correct
answer with no explanation often earns little or no credit.
If you are asked to write code but you do not know the exact
Exam 2
CS 201, Fall 2008
This exam begins for you when you open (or peek inside) this packet. It ends at the start of class
on Monday 2008 November 3. Between those two times, you may work on it as much as you like. I
recommend that you get started early
Exam 1 Answers
CS 201, Fall 2010
Im going to ask you two unrelated questions about our gcd function from class:
def gcd(a, b):
"The arguments a and b are integers with a >= b >= 0. Returns the greatest
common divisor of a and b."
if b = 0:
return a
else: