Student of Dezyne E'cole College ,doing his Degree Programme in Bachelors Degree in Computer Application. .Along with the Degree programme the student is also updating his industry required skills of IT through the regular work sessions taken during the 365 days of study at college. .This is a work showcase of the work of this student after Two year of his study of Bachelors Degree in Computer Application.
www.dezyneecole.com
Kuldeep Singh Project on C language and Visual Basic ,Final Year BCA ,Dezyne E'cole College
1. Submitted By
Kuldeep Singh
BCA –3rd Year
Dezyne E’ cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2015-2016
2. 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
3. Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Table Printing
C Programming
4. 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 Printing
C Programming
5. 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 Printing
C Programming
7. 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 = %dnnn",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 Printing
C Programming
8. Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Palindrome Number
C Programming
9. Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Palindrome Number
C Programming
10. 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 Number
C Programming
11. 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 Number
C Programming
12. 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
13. 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
14. Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Garment Shop
VB Programming
15. Kuldeep Singh
Bachelor of Computer
Application
Final Year
Dezyne E’cole College
www.dezyneecole.com
Module
Public rs As ADODB.Recordset
Public con As ADODB.Connection
Sub connect()
Set rs = New ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=.Garment.mdb;Persist Security Info=False"
rs.Open "select * from garment;", con, adOpenKeyset,
adLockOptimistic
End Sub
Source Code
Form
Dim l As ListItem
Dim total As Integer
Private Sub Combo1_Click()
Call connect
Do Until rs.EOF
If Combo1.Text = rs.Fields(0) Then
Text1.Text = rs.Fields(1)
End If
rs.MoveNext
Loop
Text2.SetFocus
End Sub
Private Sub Command1_Click()
Set l = ListView1.ListItems.Add(, , Combo1.Text)
l.SubItems(1) = Text1.Text
l.SubItems(2) = Text2.Text
l.SubItems(3) = Text3.Text
End Sub
Garment Shop
VB Programming
16. 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 Me
End 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.Text
End Sub
Private Sub Form_Load()
Call connect
Do Until rs.EOF
Combo1.AddItem (rs.Fields(0))
rs.MoveNext
Loop
End Sub
Private Sub Text2_Change()
Call connect
Do Until rs.EOF
If Val(Text2.Text) > Val(rs.Fields(2)) Then
MsgBox "Stock Out"
Text2.Text = ""
Else
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
End If
rs.MoveNext
Loop
End Sub
Garment Shop
VB Programming
17. 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 Shop
VB Programming