Parallel Circuit

Wednesday, April 08, 2009 · Posted in

This is a kind of parallel circuit. Actually, I made it using the Software called as the Circuit maker. This Circuits consist of a SPDT Switch or a Single Pole Double Throw Switch. Also the 6 lamps a ground and a 10V battery in order to pud a current on our circuit. This is one of our assignments in networking in which I got perfect. We can also make it as series circuit but we have to delete some materials here in this illustration.

As we all know that parallel circuit is so useful together with the series circuit. watch out for the following post on this blog about Digital Circuit not only about circuit but also all about programming and web designing.

Summer Enrollment Start

Wednesday, April 01, 2009 · Posted in

Today is the first day of enrollment here in our school. Well, all I can say is that difficult, why? because even though there are only 2 subjects offered in this summer but still I don't know what subject I am going to take, and especially the time. I like to have a class of afternoon because I don't want to wake up early in my bed but the one that I am so sure is that I know that if I am going to take afternoon class and then my brain will not work properly it is because in this very hour I really want to go to bed and have a sleep. In this kind of hour I really felt boring. so that 's why I think I am now going to take morning classes because I know that my brain is fresh and calm.

A Day of New Learning

Monday, March 30, 2009 · Posted in

I was so very happy for today it is because, I learn something from our orientation a while ago about how to use the Fire Extinguisher and about the Basic First Aid. Well, sad to say only the Fire Extinguisher is the orientation I made to attend because, my boss told me to make some certificate for the speaker in our orientation and after the orientation I really get mad and I was so disgusted of what happen a while ago, because my fellow working student give me madness. I know that he know that, that I don't want waiting except for those things that really need to wait. But calling in phone? Oh my God, so embarrassing. But still I just want to for get this day and face the tomorrow, because I know that if I am going to keep this anger inside of me and then it could not bring me any good right? so forgive and forget is the only way to make a relationship more stronger.

How to Insert Image in HTML using CSS

Friday, March 27, 2009 · Posted in

This is a tutorial about on how to inserting an image in HTML by using the CSS or the Cascading Style Sheet, most web programmers are using CSS in creating their websites. To begin with follow the steps that I provide for you below.

1. Make a directory/folder name myfirstcss.
2. Look for an image which you were going to use for this activity.
3. After creating the directory and looking for image. Open your text editor and create a file titled first_activity.html.
4. Next, create another file name style.css. This is were we are going to put all our css later.
5. You may now start. just try to follow the code given below.


HTML:

<html>
<head>
<title>your title goes heretitle>
head>
<link rel="text/css" type="stylesheet" href="style.css" />
<body>
<div id="image">div>
body>
html>
This is now the css and you have to save it in the same directory and has a filename of style.css.
#image
{
position:absolute;
width:600px;
height:100px;
background-image:url('john.gif');
background-repeat:no-repeat;
}
Sample Output:



If there is some questions about this article just CLICK THIS LINK to be redirected to the forum page.

New Cover Design

Wednesday, March 25, 2009 · Posted in

Well Today, I finally made again a new design for our handbook cover, I really enjoy making this cover, why? it is because it can help me to enhance my knowledge in designing, especially now that I don't know how to match colors. Actually, my boss told me that I will be the one to design the cover it is because there are nobody could make a design for the handbook, because all the the staffs are so busy so I volunteer to make the design and thanks to God because, they like my design.


Configuring gateway and serial Interface

Thursday, February 19, 2009 · Posted in

This is our activity for this day Feb. 19, 2009. In this network there are 5 networks on it. In order for you to connect to the Router 1 and then you have enable first the default gateway. This will only work in the Packet Tracer and not a real router. You can only use it when you are going to have your demo about networks.

Here's the code:

router>ena
router#config t
router(config)#int fa0/0
router(config-if)#ip add 172.16.1.1 255.255.255.0
router(config-if)#no shut

After this configuration and then the fa0/0 will now be in enable mode.

How to connect 1 router to another router?

- To connect the Router 1 to the Router 2 and then you have to configure first the Router 1, it is because it is the Router in which it contains the clock rate.

Code:

router(config)#int se2/0
router(config-if)#ip add 172.16.2.1 255.255.255.0
router(config-if)#clock rate 56000
router(config-if)#no shut
router(config-if)#exit
router(config)#router rip
router(config-if)#network 172.16.1.0
router(config-if)#network 172.16.2.0

you have to continue adding those network in your topology.

For other routers they are the same with this router but just remember that you don't have to put a clock rate on the serial in which it doesn't have a clock. To be sure hover first the connection and take note that you have to put the clock rate to the port in which it contains the clock symbol.

How to configuring fastethernet interface

Tuesday, February 17, 2009 · Posted in

If you want to demonstrate on how to configure a router in the Packet Tracer and then you can configure the router through its CLI or the Command Line Interface. Here are some image that can help you.


In this topology there are 4 networks that you can see which is the network 192.168.201.0, 192.168.202.0, 192.168.203.0, 192.168.204.0. This are the 4 networks in the topology.

1st if you want to enable your default gateway on network 192.168.201.0 and then you have to configure first the FastEthernet in Router1.

Here are some of the code:

router>ena // it allows you to enter the privileged mode
router#config t //it is short for configure terminal
router(config)#int fa0/0 // this allow you to configure the fastethernet
router(config-if)#ip add 192.168.201.1 255.255.255.0 // it allows you to enter the ip add

For the serial to be followed......

How to get the Factorial by Using Recursion

Sunday, February 15, 2009 · Posted in

This is an example or recursion in which there is a function inside a function here are the codes and the ouput:

Output:

Codes:


#include<.....>
#include<......>
#include<......>
using namespace std;
int factorial(int num)
{
if(num==0)
return 1;
else
return num*factorial(num-1);
}

int main()
{int z;int num;
menu:system("cls");
cout<<"Enter number: ";
cin>>num;
z=factorial(num);
cout<<<"";
cout<<"\n\n";
system("pause");
system("cls");
goto menu;
getch();
}

How to create hover button without javascript

· Posted in

In this example it illustrates on how to create a hover menu without using a javascript but only pure css.

Output:

CSS:

div
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
text-decoration:none;
color:#000000;
list-style:none;
}

td
{
background-image:url(banner2.jpg);
width:150px;
left: 14px;
top: 0px;
text-align:center;

}
a:hover div
{
color:#FFFFFF;
opacity:.2;
background-color: #0000FF;
}

How to get the average of 2 Numbers using function

Friday, February 13, 2009 · Posted in

If you have some problem in C++ or either in C adding numbers and getting its average by using a function and then I have some codes here that can really help you a lot.


Output:

Code:





#include<......>

#include<......>
#include<......>
#define p printf

float ave(float x, float y);
int add(int x, int y)
{
int sum=0;

sum=x+y;

return sum;
}
int main()
{
menu:
system("cls");
int a,b;

p("Enter Num1: ");
scanf("%d", &a);
p("Enter Num2: ");
scanf("%d", &b);
p("\n\nThe sum of the two integers is %d.",add(a,b));
p("\n\nThe average of the two integers is %.1f.",ave(a,b));
p("\n\n");
system("pause");
char choice;
p("\nDo you want to repeat the process?[y for yes][n for no]: ");
scanf("%s", &choice);


if(choice=='y'||choice=='Y')

goto menu;

else if(choice=='n'||choice=='N')
exit(0);


getch();

}

float ave(float x, float y)
{
float ave,sum;
sum=x+y;
ave=sum/2;

return ave;

}

How to add 2 numbers using function

· Posted in

If you have some problem in C++ or either in C adding numbers by using a function and then I have some codes here that can really help you a lot.


Output:



Code:





#include<'stdio.h'>

#include<'conio.h'>
#include<'stdlib.h'>
#define p printf

int add(int x, int y)
{
int sum=0;

sum=x+y;

return sum;
}
int main()
{
menu:
system("cls");
int a,b;

p("Enter Num1: ");
scanf("%d", &a);
p("Enter Num2: ");
scanf("%d", &b);
p("\n\nThe sum of the two integers is %d.",add(a,b));
p("\n\n");
system("pause");
char choice;
p("\nDo you want to repeat the process?[y for yes][n for no]: ");
scanf("%s", &choice);


if(choice=='y'||choice=='Y')

goto menu;

else if(choice=='n'||choice=='N')
exit(0);


getch();

}

Powered by Blogger.