Programming Class

Link to the class of Mr.Madali : Period 1  
Activities :

1.Setting up Blog.
2.Review of HTML.
3.Application of HTML (about Me).
4.Introduction to JavaScript(Exer.1)
5.Exercise no.2(JavaScript Introduction )
6.Exercise no.3(currency conversation )
7.Exercise no.4(Odd/Even)
8.Project (Calculator)
9.Google Form(Learn Google  Form)
10.Object Practice 1(Create a simple application with 2 or more objects. Write a paragraph or letter combining those properties of objects )
11.Activity 1 Bank Account Application
12.Object/Event Lesson(Exercise no1. Exercise  no.2)
13.StringMethodsExercise
14.Test on String & String Methods
* Create an input box to create text of a full name in the form of "LASTNAME.FIRSTNAME." Ex::
"REYES.MYRA" and then create a function to separate last-name and first-name  into separate variables.
                        Fullname :REYES,MYRA
                        | Click|
                       Lastname: Reyes
                      Firstname: Myra
20.Independent work: (On-line Quiz) Create a simple on-line quiz with a different type of questions., multiple choice, fill-in the blanks, true or false etc.
Problem:
                 /** Distributes the tokens from the current player's position one at a time to each player in
                    * the game. Distribution begins with the next position and continues until all the tokens
                    * have been distributed. If there are still tokens to distribute when the player at the
                    * highest position is reached, the next token will be distributed to the player at position 0.
                     * Precondition: the current player has at least one token.
                    * Postcondition: the current player has not changed.
                    */
Return an array that contains exactly the same numbers as the given array, but rearranged so that every 3 is immediately followed by a 4. Do not move the 3's, but every other number may move. The array contains the same number of 3's and 4's, every 3 has a number after it that is not a 3 or 4, and a 3 appears in the array before any 4. 

fix34({1, 3, 1, 4}) → {1, 3, 4, 1}
fix34({1, 3, 1, 4, 4, 3, 1}) → {1, 3, 4, 1, 1, 3, 4}
fix34({3, 2, 2, 4}) → {3, 4, 2, 2}



No comments:

Post a Comment