How long does it take for the number of heads and tails flipped to be equal to 10?
20 flips
Longest streak where each roll is greater than or equal to the last
Longest streak made of only five (any five) of the six faces on the die (i.e., not equal to the other)
8 rolls.
Friday, February 3, 2017
Wednesday, February 1, 2017
Color Sleuth
1. Did you develop a program with a purpose? if yes what?
Yes, the program is a fun game that could also be modified to be a game version or a fun way to test for color blindness.
2. Did you apply algorithms and integrate math or logical concepts? What did you use?
Yes, I used booleans, if statements, conditionals, functions, and random integers.
3. Did you apply abstraction ( integrate complexity to manage math or logical concepts) ? How
Yes, I created if statements that were complex and had a structure to follow. I nested conditionals in functions and I used that to simplify the calling back of a score tally or a button color switch.
Yes, the program is a fun game that could also be modified to be a game version or a fun way to test for color blindness.
2. Did you apply algorithms and integrate math or logical concepts? What did you use?
Yes, I used booleans, if statements, conditionals, functions, and random integers.
3. Did you apply abstraction ( integrate complexity to manage math or logical concepts) ? How
Yes, I created if statements that were complex and had a structure to follow. I nested conditionals in functions and I used that to simplify the calling back of a score tally or a button color switch.
Thursday, January 19, 2017
Will it crash reflection
For “Will it Crash” - what was easy? what was hard?
Fairly easy for me.
For this lesson, writing if-statements - what was easy, what was hard?
It was easy to follow the logic of the if-statements and although nested statements look messy I could also track those fairly well. This is largely in part to my previous coding experience specifically in javascript.
If there was one thing you wish you understood better at this point, what would it be?
I always get confused about boolean logic.
Fairly easy for me.
For this lesson, writing if-statements - what was easy, what was hard?
It was easy to follow the logic of the if-statements and although nested statements look messy I could also track those fairly well. This is largely in part to my previous coding experience specifically in javascript.
If there was one thing you wish you understood better at this point, what would it be?
I always get confused about boolean logic.
Monday, January 9, 2017
Multi Screen Code
setScreen("HomeScreen");
onEvent("Beginbtn", "click", function(){
setScreen("ScheduleOrCalendar");
});
onEvent("Blocks", "click", function(){
setScreen("BlockSchedule");
});
onEvent("Calendar", "click", function(){
setScreen("JanCalendar");
});
onEvent("Homebtn", "click", function(){
setScreen("HomeScreen");
});
onEvent("Homejan", "click", function(){
setScreen("HomeScreen");
});
onEvent("HomeBlock", "click", function(){
setScreen("HomeScreen");
});
onEvent("Beginbtn", "click", function(){
setScreen("ScheduleOrCalendar");
});
onEvent("Blocks", "click", function(){
setScreen("BlockSchedule");
});
onEvent("Calendar", "click", function(){
setScreen("JanCalendar");
});
onEvent("Homebtn", "click", function(){
setScreen("HomeScreen");
});
onEvent("Homejan", "click", function(){
setScreen("HomeScreen");
});
onEvent("HomeBlock", "click", function(){
setScreen("HomeScreen");
});
Error Messages
You probably had some error messages today. What error messages did you have? How did you solve the error message? Is is common to get error messages as a coder? Why might a programmer "like" or benefit from error messages?
I did not experience any error messages since the project was fairly simple especially since I have used Javascript frequently in the past and am familiar with the syntax. Some common errors however that I have received in the past or my peers could have received would be mismatching ids or misspelling ids when you call things in your code. A programmer like myself would benefit from receiving error messages because it teaches the programmer how to deal with and solve problems in their code.
Thursday, December 15, 2016
Computationally Hard
1) Describe what it means for a problem to be “computationally hard.”
A problem is computationally hard if there is no algorithm to solve it and it must be done with brute force.
2) What strategies do people use to solve large computationally hard problems?
They often look for the best starting point which ,makes the rest slightly easier.
3) Why are computationally hard problems important in encryption strategies?
They are important because they make things and messages more secure because they are harder for computers to automatically decrypt.
A problem is computationally hard if there is no algorithm to solve it and it must be done with brute force.
2) What strategies do people use to solve large computationally hard problems?
They often look for the best starting point which ,makes the rest slightly easier.
3) Why are computationally hard problems important in encryption strategies?
They are important because they make things and messages more secure because they are harder for computers to automatically decrypt.
Subscribe to:
Posts (Atom)
