Sunday, February 27, 2011

Even numbers Turbo C

Turbo C program that will display even numbers


Saturday, February 26, 2011

Quiz2

1. Write a program that writes your name on the monitor ten times. Write this program three times, once with each looping method.

Turbo C - Multiplication Table

Tuesday, February 15, 2011

IT406 - Ereating Tables

1. Open MS Access 2003
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

1. Write a program that will arrange the elements of a 10-integer array in ascending and descending order

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

In this section, we are going to calculate the sum of two matrix and containing its rows and columns. See below for better understanding to this.
In this program we are going to calculate the sum of two matrix. To make this program, we need to declare two dimensional array of type integer. Firstly it calculates the length of the both the arrays.

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

1. Conversion. Create a program that converts a Fahrenheit measure to a Celsius measure (C = 5/9 x (F-32)

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.

5. Make a program that will accept a number in square meters (m^2) and display its equivalent measure in hectars (has)

hint: 1000 M^2 = 1 ha

Thursday, February 3, 2011

Wednesday, February 2, 2011

Using - else..if

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

QUIZ 1

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.

Followers

Visitor

free counters

FEEDJIT Live Traffic Feed