Sunday, February 27, 2011
Saturday, February 26, 2011
Quiz2
Tuesday, February 15, 2011
IT406 - Ereating Tables
2. Name your new database to Recipes
3. Create tables using the following fields
Field Name /Data Type
AreaID /Number
AreaName/ Text
Save your table under the name of : Area
4. Add the data as shown in the diagram below.
5. After entering all the data, save and close your Area table
6. Create Another table name: Recipe
Field Name /Data Type
RecipeID/ Number
RecipeName/ Text
Save your table under the name of : Recipe
7. Add the data as shown in the diagram below.
8. After entering all the data, save and close Recipe table
9. Create Another table name: Ingredients
Field Name/ Data Type
IngredientsID /Number
IngredientsName/ Text
AreaID /Number
RecipeID /Number
Quantity /Number
Save your table under the name of : Ingredients
Monday, February 14, 2011
Exer10 & 11
2. Write a program that will compute and display the average of a 20 element array whose values are inputted by the user
HAPPY SAMA_SAMA !!!
Thursday, February 10, 2011
Activity 1
To make the matrix we will use the for loop. By making use of the for loop the rows and column will get divide. This process will be performed
again for creating the second matrix.
After getting both the matrix with us, we need to sum both the matrix. The both matrix will be added by using the for loop with array[i][j]+array1[i][j]. The output will be display
ed by using the println() method.
Save your file under the filename: Activity1
E-mail the output to: acdtcclass at yahoo dot com
Exercise 9.
1. Create a program that will search for the largest value in an array of integer of length 10.
Monday, February 7, 2011
Quiz 2 - Conversion Unit
2. Create a program that will input a number in kilowatt and display its equivalent measure in watts.
3. Make a program that will convert an inputted number in inches (in) and display its equivalent measure in feet (ft)
4. Create a program that will get as input from the user the base and height of triangle. Compute and display the area of the rectangle.
Thursday, February 3, 2011
Wednesday, February 2, 2011
Using - else..if
Prob.) Write a program that asks the user for the hours worked for the week and the hourly rate. The basic salary is compute as:
Salary = hours worked * hourly rate
Bonuses are given:
No. of hours > 45 Bonus of 500 pesos
No. of hours > 40 and <=45 Bonus of 250 pesos
No. of hours > 35 and <= 45 Bonus of 150 pesos
Display the basic salary, bonus and the total salary (basic salary + bonus) for the week.
Tuesday, February 1, 2011
PHP - using assignment statement
Arithmetic-Assignment Operators and Variables
Arithmetic-assignment operators perform an arithmetic operation on the variable at the same time as assigning a new value. For this PHP exercise, write a script to reproduce the output below. Manipulate only one variable using no simple arithmetic operators to produce the values given in the statements.
Hint: In the script each statement ends with "Value is now $variable."
Value is now 8.
Add 2. Value is now 10.
Subtract 4. Value is now 6.
Multiply by 5. Value is now 30.
Divide by 3. Value is now 10.
Increment value by one. Value is now 11.
Decrement value by one. Value is now 10.