FINALS SA 143 /* PAYROLL */

Posted: March 9, 2012 in Uncategorized

#include<stdio.h>
#include<conio.h>
#define s scanf
#define p printf
#define g gotoxy

char choice;
int name;
char ch;
int hw,rph;
float netpay;

main()
{
do{
clrscr();

p(“\n PAYROLL”);
p(“\n MENU”);
p(“\n A->HR”);
p(“\n B->SALES”);
p(“\n C->PRODUCTION”);
p(“\n D->MANAGER”);
p(“\n E->STAFF”);
p(“\n Q->EXIT”);
p(“\n choice : “);

do{
choice=toupper(getche());
}while(choice!=’A'&&choice!=’B'&&choice!=’C'&&choice!=’D'&&choice!=’E'&&choice!=’Q');

switch(toupper(choice)){

case’A':
clrscr();
p(“\n\nHR DEPARTMENT”);
p(“\nSELECT YOUR NAME”);
p(“\n 1 – VERY DIRTY HARRY”);
p(“\n 2 – SHERIFF PEMPENGCO”);
p(“\n 3 – TALONG RANGER”);
p(“\n 4 – TONTORONTO”);
p(“\n 5 – VICE GANDA”);
p(“\n 6 – BILLY CRAWFORD”);
p(“\n 7 – RYAN BANG”);
p(“\n 8 – VHONG NAVARRO”);
p(“\n 9 – ANNE CURTIS”);
p(“\n 10 – JHONG HILARIO\n”);
p(“enter your number’s name and press enter : “);
s(“\n%d”,&name);

if(name==1){
clrscr();
g(30,2);p(“VERY DIRTY HARRY\n\n”);}
if(name==2){
clrscr();
g(30,2);p(“SHERIFF PEMPENGCO\n\n”);}
if(name==3){
clrscr();
g(30,2);p(“TALONG RANGER\n\n”);}
if(name==4){
clrscr();
g(30,2);p(“TONTORONTO\n\n”);}
if(name==5){
clrscr();
g(30,2);p(“VICE GANDA\n\n”);}
if(name==6){
clrscr();
g(30,2);p(“BILLY CRAWFORD\n\n”);}
if(name==7){
clrscr();
g(30,2);p(“RYAN BANG\n\n”);}
if(name==8){
clrscr();
g(30,2);p(“VHONG NAVARRO\n\n”);}
if(name==9){
clrscr();
g(30,2);p(“ANNE CURTIS\n\n”);}
if(name==10){
clrscr();
g(30,2);p(“JHONG HILARIO\n\n”);}

else if(name!=1 && name!=2 && name!=3 && name!=4 && name!=5 && name!=6 && name!=7 && name!=8 && name!=9 && name!=10)
{
clrscr();
g(30,2);p(“INVALID!”);
break;
}
g(28,5);p(“enter HW :”); s(“%d”,&hw);
g(28,6);p(“enter rph :”); s(“%d”,&rph);
netpay=hw*rph;
gotoxy(24,15); p(“your netpay is : %.2f”,netpay);

break;

case’B':
clrscr();
p(“\n\nSALES DEPARTMENT”);
p(“\nSELECT YOUR NAME”);
p(“\n 1 – PIPZ ALMAZON”);
p(“\n 2 – CHRISTIAN BARBA”);
p(“\n 3 – ALEXIS LAXA”);
p(“\n 4 – JOEL RIZALDO”);
p(“\n 5 – BENITO CUMAL JR.”);
p(“\n 6 – KHIM ONA”);
p(“\n 7 – MARC LUEN MEDINA”);
p(“\n 8 – RENAN GALARPE”);
p(“\n 9 – DONELL CARIQUITAN”);
p(“\n 10 – RIC ALLEN CARANDANG\n”);
p(“enter your number’s name and press enter : “);
s(“%d”,&name);

if(name==1){
clrscr();
g(30,2);p(“PIPZ ALMAZON\n\n”);}
if(name==2){
clrscr();
g(30,2);p(“CHRISTIAN BARBA\n\n”);}
if(name==3){
clrscr();
g(30,2);p(“ALEXIS LAXA\n\n”);}
if(name==4){
clrscr();
g(30,2);p(“JOEL RIZALDO\n\n”);}
if(name==5){
clrscr();
g(30,2);p(“BENITO CUMAL JR.\n\n”);}
if(name==6){
clrscr();
g(30,2);p(“KHIM ONA\n\n”);}
if(name==7){
clrscr();
g(30,2);p(“MARC LUEN MEDINA\n\n”);}
if(name==8){
clrscr();
g(30,2);p(“RENAN GALARPE\n\n”);}
if(name==9){
clrscr();
g(30,2);p(“DONELL CARIQUITAN\n\n”);}
if(name==10){
clrscr();
g(30,2);p(“RIC ALLEN CARANDANG\n\n”);}

else if(name!=1 && name!=2 && name!=3 && name!=4 && name!=5 && name!=6 && name!=7 && name!=8 && name!=9 && name!=10)
{
clrscr();
p(“INVALID!”);
break;
}

g(28,5);p(“enter HW :”); s(“%d”,&hw);
g(28,6);p(“enter rph :”); s(“%d”,&rph);
netpay=hw*rph;
gotoxy(24,15); p(“your netpay is : %.2f”,netpay);

 

break;

case’C':
clrscr();
p(“\n\nPRODUCTION DEPARTMENT”);
p(“\nSELECT YOUR NAME”);
p(“\n 1 – JOSEPH PLATON”);
p(“\n 2 – ZYRA MEDEL”);
p(“\n 3 – KERNELL SALISI”);
p(“\n 4 – JULIEPEARL EVANGELISTA”);
p(“\n 5 – SARAH BADILLA”);
p(“\n 6 – KIM OCTAVIANO”);
p(“\n 7 – DEINECE PALO”);
p(“\n 8 – CAMELLE DALISAY”);
p(“\n 9 – RUBYLIN GAWAT”);
p(“\n 10 – ANNA PINONGCOS\n”);
p(“enter your number’s name and press enter : “);
s(“\n%d”,&name);

if(name==1){
clrscr();
g(30,2);p(“JOSEPH PLATON\n\n”);}
if(name==2){
clrscr();
g(30,2);p(“ZYRA MEDEL\n\n”);}
if(name==3){
clrscr();
g(30,2);p(“KERNELL SALISI\n\n”);}
if(name==4){
clrscr();
g(30,2);p(“JULIEPEARL EVANGELISTA\n\n”);}
if(name==5){
clrscr();
g(30,2);p(“SARAH BADILLA\n\n”);}
if(name==6){
clrscr();
g(30,2);p(“KIM OCTAVIANO\n\n”);}
if(name==7){
clrscr();
g(30,2);p(“DEINECE PALO\n\n”);}
if(name==8){
clrscr();
g(30,2);p(“CAMELLE DALISAY\n\n”);}
if(name==9){
clrscr();
g(30,2);p(“RUBYLIN GAWAT\n\n”);}
if(name==10){
clrscr();
g(30,2);p(“ANNA PINONGCOS\n\n”);}

else if(name!=1 && name!=2 && name!=3 && name!=4 && name!=5 && name!=6 && name!=7 && name!=8 && name!=9 && name!=10)
{
clrscr();
g(30,2);p(“INVALID!”);
break;
}

g(28,5);p(“enter HW :”); s(“%d”,&hw);
g(28,6);p(“enter rph :”); s(“%d”,&rph);
netpay=hw*rph;
gotoxy(24,15); p(“your netpay is : %.2f”,netpay);

break;

case’D':
clrscr();
p(“\n\nMANAGER DEPARTMENT”);
p(“\nSELECT YOUR NAME”);
p(“\n1 – IVAN ROBERT PLATON”);
p(“\n2 – ETHEL GONZALES”);
p(“\n3 – MARC LUEN MEDINA”);
p(“\n4 – RONALYN DE CASTRO”);
p(“\n5 – CHERLYNE BRIGOLE”);
p(“\n6 – RENZ LOYD SURCO”);
p(“\n7 – GERALD UMALI”);
p(“\n8 – RHEA MIRASOL”);
p(“\n9 – JESTER FIDIECAN”);
p(“\n10 – JONAS GUERRERO\n”);
p(“enter your number’s name and press enter : “);
s(“\n%d”,&name);

if(name==1){
clrscr();
g(30,2);p(“IVAN ROBERT PLATON\n\n”);}
if(name==2){
clrscr();
g(30,2);p(“ETHEL GONZALES\n\n”);}
if(name==3){
clrscr();
g(30,2);p(“MARC LUEN MEDINA\n\n”);}
if(name==4){
clrscr();
g(30,2);p(“RONALYN DE CASTRO\n\n”);}
if(name==5){
clrscr();
g(30,2);p(“CHERLYNE BRIGOLE\n\n”);}
if(name==6){
clrscr();
g(30,2);p(“RENZ LOYD SURCO\n\n”);}
if(name==7){
clrscr();
g(30,2);p(“GERALD UMALI\n\n”);}
if(name==8){
clrscr();
g(30,2);p(“RHEA MIRASOL\n\n”);}
if(name==9){
clrscr();
g(30,2);p(“JESTER FIDIECAN\n\n”);}
if(name==10){
clrscr();
g(30,2);p(“JONAS GUERRERO\n\n”);}

else if(name!=1 && name!=2 && name!=3 && name!=4 && name!=5 && name!=6 && name!=7 && name!=8 && name!=9 && name!=10)
{
clrscr();
g(30,2);p(“INVALID!”);
break;
}
g(28,5);p(“enter HW :”); s(“%d”,&hw);
g(28,6);p(“enter rph :”); s(“%d”,&rph);
netpay=hw*rph;
gotoxy(24,15); p(“your netpay is : %.2f”,netpay);

break;

case’E':
clrscr();
p(“\n\nSTAFF”);
p(“\nSELECT YOUR NAME”);
p(“\n1 – FRANCIS BALAZON”);
p(“\n2 – SHIELA GOCOYO”);
p(“\n3 – VANGIE ARCEGA”);
p(“\n4 – JEROME ATIENZA”);
p(“\n5 – ELMA ILAGAN”);
p(“\n6 – DUKE AMUAN”);
p(“\n7 – WESLEY”);
p(“\n8 – CHRISTIAN DIMAANO”);
p(“\n9 – COMO”);
p(“\n10 – SHELYN EXTRA”);
p(“enter your number’s name and press enter : “);
s(“\n%d”,&name);

if(name==1){
clrscr();
g(30,2);p(“FRANCIS BALAZON\n\n”);}
if(name==2){
clrscr();
g(30,2);p(“SHIELA GOCOYO\n\n”);}
if(name==3){
clrscr();
g(30,2);p(“VANGIE ARCEGA\n\n”);}
if(name==4){
clrscr();
g(30,2);p(“JEROME ATIENZA\n\n”);}
if(name==5){
clrscr();
g(30,2);p(“ELMA ILAGAN\n\n”);}
if(name==6){
clrscr();
g(30,2);p(“DUKE AMUAN\n\n”);}
if(name==7){
clrscr();
g(30,2);p(“WESLEY\n\n”);}
if(name==8){
clrscr();
g(30,2);p(“CHRISTIAN DIMAANO\n\n”);}
if(name==9){
clrscr();
g(30,2);p(“COMO\n\n”);}
if(name==10){
clrscr();
g(30,2);p(“SHELYN EXTRA\n\n”);}

else if(name!=1 && name!=2 && name!=3 && name!=4 && name!=5 && name!=6 && name!=7 && name!=8 && name!=9 && name!=10)
{
clrscr();
g(30,2);p(“INVALID!”);
break;
}

g(28,5);p(“enter HW :”); s(“%d”,&hw);
g(28,6);p(“enter rph :”); s(“%d”,&rph);
netpay=hw*rph;
gotoxy(24,15); p(“your netpay is : %.2f”,netpay);

break;
case’Q':
clrscr();
g(30,2);p(“THANK YOU!”);
break;

 

}
g(30,20);p(“TRY ANOTHER Y/N”);
do{
g(37,21);ch=toupper(getch());
}while(ch!=’Y'&&ch!=’N');
}while(ch!=’N');
getch();
}


 

 

 

 

intindihin mo nlang. AHAHA

Make a Fake virus !

Posted: December 26, 2011 in Uncategorized

Have you ever dreamed of creating a fake virus yourself to play a prank by installing the virus on your friend computer and a making a fool of him. If Yes then this post is of great interest to you.

So what would you like to do with a virus to make your friend believe that a virus has infected his/her computer.

Follow this steps -

step 1 : open notepad

step 2 : copy this

X=MsgBox("Message",0+16,"Title")

NOTE :

Message Description: Write some warning message you want to display

ex : your computer has a Virus!

0+16: It is a combination of two different codes:

–you can write any numbers from 0,1,2,3,4 instead of 0 (before the ‘+’ symbol) & here is the meaning of each number:

0 = Ok Button
1 = Ok/Cancel Button
2 = Abort/Retry/Ignore button
3 = Yes/No/Cancel
4 = Yes/No

–you can write any numbers from 16,32,48,64 instead of 16 (after the  ‘+’ symbol) & here is the meaning of each number:

16 – Critical Icon
32 – Warning Icon
48 – Warning Message Icon
64 – Information Icon

Title: you can write any title

ex : virus detected

To create multiple Message Boxes, just duplicate the line so that it could end up to something like this in the message:

X=MsgBox("Message",0+16,"Title")
X=MsgBox("Message",0+16,"Title")

Now at the end you are going to go to ‘Save As’ and here’s the important step. The file-type should be set to ‘All types’ and the extension of your filename should be .VBS. For example, “Fake virus.vbs”. Once you save it, open it up and you should get your message box opened up.

You can change its icon to make it a realistic.

The following was done in Windows 7 Ultimate and will also work in Windows XP and Windows Vista.

That’s all there is to it!




step 1 : open notepad

[ExtShellFoldersViews]
{BE098140-11D0-A513-A3A4-00C04FD706EC} =
{BE098140-11D0-A513-A*3A4-00C04FD706EC}

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
IconAreaImage=background.jpg

Note : change rename image file to background.jpg

step 2 : save it on your USB Flash Drive as Desktop.ini

step 3 : create a folder on your USB Flash Drive name it as background. Then save your image there.

Note : You can hide it all if you want

that’s it ..hope it works :)