Activities:
- Setting up Blog.
- Review of HTML.
- Application of HTML: "About Me!"
- Introduction to Javascript (Exer.1)
- Exercise no 2 (Javascript Introduction)
- Exercise no 3(Currency Conversion)
- Exercise no 4(Even or Odd)
- Project(Calculator)
- Google Form(Learn Google Form)
- Object Practice 1(Create a simple application with two or more or more objects. Write a paragraph or letter combining those properties of objects.)
- Activity 1 Bank Account Application
- Object/Event Lesson(Exercise 1, Exercise 2)
- String and String Method Exercises
- Test on String and String Methods
- Create an input box to accept text of a full name in the form of "LASTNAME, FIRSTNAME." Example "REYES, MYRA" and create a function to separate last name and first name in to separate variable.
Full name: Reyes, Myra
[click]
First name: Myra
Last name: Reyes
15. Numbers and Numbers Method
16. Test on Numbers and Numbers Method
Title:
Simple Grading System
Create an application that will input student's grade (50-100), the application should only accept numbers between 50-100. The application will output the precise grade with 2 decimal point and a corresponding letter grade (50-59 F, 60-69 D, 70-79 C, 80-89 B, 90-100 A). The application should also show the corresponding Binary, Octal and Hexadecimal equivalent of the computed average grade. A button should be click to show the result.
17. Exercise on Math Methods
18. Exercise on Date()
19. Exercise on HTML Input types
20. Online Quiz
21. Array Exercises
22. Array Test
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.
*/
The Token Pass game board is represented by an array of integers. The indexes of the array represent the player
positions on the game board, and the corresponding values in the array represent the number of tokens that each
player has. The following example illustrates one player's turn.
Example
The following represents a game with 4 players. The player at position 2 was chosen to go first.
The tokens at position 2 are collected and distributed as follows.
1st token - to position 3 (The highest position is reached, so the next token goes to position 0.)
2nd token - to position 0
3rd token - to position 1
4th token - to position 2
5th token - to position 3 (The highest position is reached, so the next token goes to position 0.)
6th token - to position 0
After player 2’s turn, the values in the array will be as follows.
23. Array Method Exercise
24. Test on Array Methods / Array
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}
15. Numbers and Numbers Method
16. Test on Numbers and Numbers Method
Title:
Simple Grading System
Create an application that will input student's grade (50-100), the application should only accept numbers between 50-100. The application will output the precise grade with 2 decimal point and a corresponding letter grade (50-59 F, 60-69 D, 70-79 C, 80-89 B, 90-100 A). The application should also show the corresponding Binary, Octal and Hexadecimal equivalent of the computed average grade. A button should be click to show the result.
17. Exercise on Math Methods
18. Exercise on Date()
19. Exercise on HTML Input types
20. Online Quiz
21. Array Exercises
22. Array Test
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.
*/
The Token Pass game board is represented by an array of integers. The indexes of the array represent the player
positions on the game board, and the corresponding values in the array represent the number of tokens that each
player has. The following example illustrates one player's turn.
Example
The following represents a game with 4 players. The player at position 2 was chosen to go first.
The tokens at position 2 are collected and distributed as follows.
1st token - to position 3 (The highest position is reached, so the next token goes to position 0.)
2nd token - to position 0
3rd token - to position 1
4th token - to position 2
5th token - to position 3 (The highest position is reached, so the next token goes to position 0.)
6th token - to position 0
After player 2’s turn, the values in the array will be as follows.
23. Array Method Exercise
24. Test on Array Methods / Array
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