Marion computer Class
Topics, Tasks and assignments - Nov 17,2016
Topics for Class - Juda & Colt
- Bits, Bytes & Binary Numbers
- HTML & CSS – introduction document object Model (DOM)
- Major components of a computer
- Review of Internet Processing:
- Client vs Server
- HTML, CSS, JavaScript and PHP
- How computers "think" : what the Central Processing Unit (CPU) does
- Programming in "psuedocode"
- JavaScript - Classes & Objects: class, instance, object, prototypes, JSON format, stringify, parse
Assignments/Tasks for Juda:
- Message program for our class:
- Modify program based on code shown in testform2.php (testform2.txt)
- Modify program to store messages in a PHP a 2 dimensional array ( a list of lists)
- Each message will be stored in a list containing : sender, topic, date-time posted, message
- Write simple program to permit user to guess a random number chosen by the program
- Write program to let two users take turns trying to guess a random number chosen by the program
- Modify prime # program :
- Exit test loop as soon as the program knows it’s not prime
- Modify user input to have program find primes between 1 and a number entered by user
- Store prime numbers in an array rather than display them as found. Have button to display numbers from array
- Count the number of primes found
- When all primes in range have been found, tell user:
- Range tested
- how many were found
- How long the process took
- Discuss :
- How to show user progress while program is filling the array
- How to make the program find primes faster ( e.g. take less time for find all primes between 1 and 100,000)
Topics for Colt : Work with Harry, Study, learn, Do
- JavaScript programming : Use Chrome console to learn:
- Variables
- Loops
- If statements
- Simple programs with user input and alert boxes
- Guess random #
- Find out if a number is a prime number
- Simple calculator
- Study simple PHP programs, write and test program
- Learn to write PHP programs that create files, write to files and read from files