Submitted By Kuldeep Singh BCA –3 rd Year Dezyne E’ cole College 106/10, Civil Lines, Ajmer Tel: 0145-2624679 www.dezyneecole.com 2015-2016
Jan 22, 2018
Submitted By
Kuldeep Singh
BCA –3rd Year
Dezyne E’ cole College106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2015-2016
Acknowledgement
This application on “C Language, VB Programming” was developed at
Dezyne E’cole College.
During the making of this project I have learnt a lot and I thank my mentor
Mr. Tarun Sharma for helping us during the making of project.
I thank my college “Dezyne E’cole College” for having conducted this
“Identity” exhibition for helping us to bring out our skill.
With due Regards,
Kuldeep Singh
BCA 3rd Year
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Table PrintingC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
#include<stdio.h>#include<conio.h>#include<dos.h>
void main(){
int a=0,input=11;int n=0,tmp=0,m=0,i;char ch;clrscr();textcolor(12);gotoxy(25,8);cprintf("==============================
==========");gotoxy(25,9);cprintf("||");gotoxy(25,10);cprintf("||");gotoxy(25,11);cprintf("||");gotoxy(25,12);cprintf("||");gotoxy(25,13);cprintf("||");gotoxy(25,14);cprintf("||");gotoxy(55,9);cprintf(" ||");gotoxy(55,10);cprintf(" ||");gotoxy(55,11);cprintf(" ||");gotoxy(55,12);cprintf(" ||");gotoxy(55,13);cprintf(" ||");
Source Code
Table PrintingC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
gotoxy(55,14);cprintf(" ||");gotoxy(25,15);cprintf("=============================
===========");
gotoxy(27,9);printf(" Table Printing \n");
gotoxy(27,12);printf(" Enter num:: \n");
gotoxy(41,12);scanf("%d",&a);
if(a!=0){
clrscr();textcolor(12);gotoxy(25,8);
cprintf("========================================");
gotoxy(25,9);cprintf("||");
gotoxy(25,10);cprintf("||");gotoxy(25,11);cprintf("||");gotoxy(25,12);cprintf("||");gotoxy(25,13);cprintf("||");gotoxy(25,14);cprintf("||");gotoxy(25,15);cprintf("||");gotoxy(25,16);cprintf("||");gotoxy(25,17);cprintf("||");
Table PrintingC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
gotoxy(25,18);cprintf("||");gotoxy(25,19);cprintf("||");gotoxy(25,20);cprintf("||");gotoxy(25,21);cprintf("||");gotoxy(55,9);cprintf(" ||");gotoxy(55,10);cprintf(" ||");gotoxy(55,11);cprintf(" ||");gotoxy(55,12);cprintf(" ||");gotoxy(55,13);cprintf(" ||");gotoxy(55,14);cprintf(" ||");gotoxy(55,15);cprintf(" ||");gotoxy(55,16);cprintf(" ||");gotoxy(55,17);cprintf(" ||");gotoxy(55,18);cprintf(" ||");gotoxy(55,19);cprintf(" ||");gotoxy(55,20);cprintf(" ||");gotoxy(55,21);cprintf(" ||");gotoxy(25,22);cprintf("==============================
==========");
Table PrintingC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
textcolor(15);gotoxy(27,9);cprintf(" Table Printing \n");
for(i=1;i<=10;i++){
n=i*a;gotoxy(34,input);input++;cprintf("%d * %d = %d\n\n\n",a,i,n);
}
}textcolor(10);gotoxy(34,40);cprintf("Do you want to Continue(Y/N)");if(getch()=='y'){
main();}else{
exit(0);}
getch();}
Table PrintingC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Palindrome NumberC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Palindrome NumberC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Source Code
#include<stdio.h>#include<conio.h>void main(){
int n=0,m=0,r=0,tmp=0;
clrscr();textcolor(12);gotoxy(25,8);cprintf("==============================
==========");gotoxy(25,9);cprintf("||");gotoxy(25,10);cprintf("||");gotoxy(25,11);cprintf("||");gotoxy(25,12);cprintf("||");gotoxy(25,13);cprintf("||");gotoxy(25,14);cprintf("||");gotoxy(55,9);cprintf(" ||");gotoxy(55,10);cprintf(" ||");gotoxy(55,11);cprintf(" ||");gotoxy(55,12);cprintf(" ||");gotoxy(55,13);cprintf(" ||");gotoxy(55,14);cprintf(" ||");gotoxy(25,15);cprintf("==============================
==========");
Palindrome NumberC Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
gotoxy(27,10);cprintf(" Check Num is Palandrom or
Not");gotoxy(27,12);textcolor(15);cprintf(" Enter Num:-");cscanf("%d",&n);tmp=n;while(n>0){
m=n%10;r=r*10+m;n=n/10;
}if(tmp==r){ clrscr();gotoxy(25,8);
cprintf("========================================");
gotoxy(25,9);cprintf("||");gotoxy(25,10);cprintf("||");gotoxy(25,11);cprintf("||");gotoxy(25,12);cprintf("||");gotoxy(25,13);cprintf("||");gotoxy(25,14);cprintf("||");gotoxy(55,9);cprintf(" ||");gotoxy(55,10);cprintf(" ||");gotoxy(55,11);cprintf(" ||");
Palindrome NumberC Programming
Palindrome Number
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
gotoxy(55,12);cprintf(" ||");gotoxy(55,13);cprintf(" ||");gotoxy(55,14);cprintf(" ||");gotoxy(25,15);
cprintf("========================================");
gotoxy(27,10);cprintf(" Entered Num:-
%d",tmp);gotoxy(27,12);textcolor(15);cprintf(" Number is
Palandrom");getch();
}else{ clrscr();
gotoxy(25,8);
cprintf("========================================");
gotoxy(25,9);cprintf("||");gotoxy(25,10);cprintf("||");gotoxy(25,11);cprintf("||");gotoxy(25,12);cprintf("||");gotoxy(25,13);cprintf("||");gotoxy(25,14);cprintf("||");
C Programming
Palindrome Number
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
gotoxy(55,9);cprintf(" ||");gotoxy(55,10);cprintf(" ||");gotoxy(55,11);cprintf(" ||");gotoxy(55,12);cprintf(" ||");gotoxy(55,13);cprintf(" ||");gotoxy(55,14);cprintf(" ||");gotoxy(25,15);
cprintf("========================================");
gotoxy(27,10);cprintf(" Entered Num:-
%d",tmp);gotoxy(27,12);textcolor(15);cprintf(" Number is not
Palandrom");getch();
}getch();
}
C Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Garment ShopVB Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Module
Public rs As ADODB.RecordsetPublic con As ADODB.ConnectionSub connect()Set rs = New ADODB.RecordsetSet con = New ADODB.Connectioncon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=.\Garment.mdb;Persist Security Info=False"rs.Open "select * from garment;", con, adOpenKeyset, adLockOptimisticEnd Sub
Source Code
Form
Dim l As ListItemDim total As IntegerPrivate Sub Combo1_Click()Call connectDo Until rs.EOF
If Combo1.Text = rs.Fields(0) ThenText1.Text = rs.Fields(1)
End Ifrs.MoveNext
LoopText2.SetFocusEnd Sub
Private Sub Command1_Click()Set l = ListView1.ListItems.Add(, , Combo1.Text)l.SubItems(1) = Text1.Textl.SubItems(2) = Text2.Textl.SubItems(3) = Text3.TextEnd Sub
Garment ShopVB Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Private Sub Command2_Click()Combo1.Text = ""Text1.Text = ""Text2.Text = ""Text3.Text = ""End Sub
Private Sub Command3_Click()Unload MeEnd Sub
Private Sub Command4_Click()Set l = ListView1.ListItems.Add(, , " ")Set l = ListView1.ListItems.Add(, , " ")Set l = ListView1.ListItems.Add(, , " ")l.SubItems(2) = "Total Amount "l.SubItems(3) = Text4.TextEnd Sub
Private Sub Form_Load()Call connectDo Until rs.EOF
Combo1.AddItem (rs.Fields(0))rs.MoveNext
LoopEnd Sub
Private Sub Text2_Change()Call connectDo Until rs.EOF
If Val(Text2.Text) > Val(rs.Fields(2)) ThenMsgBox "Stock Out"Text2.Text = ""
ElseText3.Text = Val(Text1.Text) * Val(Text2.Text)
End Ifrs.MoveNext
LoopEnd Sub
Garment ShopVB Programming
Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Private Sub Text2_LostFocus()total = Val(Text3.Text)Text4.Text = total + Val(Text4.Text)End Sub
Garment ShopVB Programming
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
ATM Machine
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
33
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
34
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Armstrong Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
int s=0;cout<<"Enter number : ";cin>>n;
for(i=1;i<n;i++){
if(n%i==0){
s=s+i;}
}if(s==n){
gotoxy(30,10);cout<<"Number is Perfect";
}else{
gotoxy(30,10);cout<<"Number Not Perfect";
}}void f2(){
clrscr();wel();gotoxy(30,8);long int i,n,l;int s;cout<<"Enter limit : ";cin>>l;int xc=26,yc=10;for(i=1;i<=l;i++){
s=0;for(n=1;n<i;n++){
if(i%n==0){s=s+n;}
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
}if(s==i){
gotoxy(xc,yc);cout<<i<<" ";xc+=5;if(xc>=50){
xc=26;yc+=2;
}}
}}void f3(){
clrscr();wel();float f=0.5;gotoxy(28,7);cout<<"Starting Limit : ";cin>>n;gotoxy(28,8);cout<<"Ending Limit : ";cin>>l;int xc=30,yc=10,s;for(int i=n;i<=l;i++){
s=0;for(int j=1;j<i;j++){
if(i%j==0){
s=s+j;}
}
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com
Perfect Calculator
Pinkle Makhijani
Bachelor of Computer
Application
I I Year
Dezyne E’cole College
www.dezyneecole.com