5/03
1. Review and Questions:
2. Competency Exam:
Write a program to get scores from the user until they enter an even number less than 0. After you finish entering the scores, print the name of the person with the highest score, the average of all scores less than 60 and the number of odd scores in the 80s.
3. Tic Tac Toe questions
4. Presentations
5. Strings:
What are they? length, charAt, indexOf
Book examples
Challenge: Print a string backwards
Challenge: take out all the vowels in a sentence
Solution1 Solution2
6. Arrays
How they work: Again
Syntax: Make an array, Access an element in the array, for loop
Array average
Array user input
Competency Example:
Find the average of all even numbers in the array and the highest odd score in the Array, then print all scores that are between these 2 values in the array.
More Practice:
8. Free Will and Computers
9. Solve by Exhaustion: Nested Fors
Example1:
Example2: Adult ticket 4 less than twice student price, box ticket price is the sum of Adult plus Student price. Premium ticket is 3 times student price. Buy one of each kind of ticket and you will spend $145. Find each ticket price.
Challenge:
10. Software Engineering
-Software Crisis
-Solutions:
Better Language
Better Specs
Prototypes
ReUsable Code:
Dykstra
Structured Programming
Object Oriented Programming
Classify: Group and Difference
Object vs Class
Methods, Inheritance, Override
Is it easier to code OOP?
11. Mastermind:
Play: RGBYTW
Play and Discuss Strategy
12. To Do List