guddu final project
Post on 08-Apr-2018
215 Views
Preview:
TRANSCRIPT
-
8/7/2019 Guddu Final Project
1/93
A
LAB REPORT
BY:-
NAME: _________________
INDRAPRASTHA UNIVERSITY
COURSE: ____________
SEMESTER: _________
PROJECT MENTOR: _______________
-
8/7/2019 Guddu Final Project
2/93
EVALUATION OF THE PROJECT
This is to certify that the lab report is submitted by_______________ of BBA (B&I), Semester 3rd of AITaffiliated to GGSIPU University, Delhi has beenexamined by the following examiners:
Internal Examiner External Examiner
-
8/7/2019 Guddu Final Project
3/93
CERTIFICATE
This is to certify that the lab report is submitted by_____________ of BBA (B&I), semester 3rd of AITaffiliated to GGSIP University, Delhi is original andauthentic. This has been carried/done under my
supervision and guidance.
Supervisor
-
8/7/2019 Guddu Final Project
4/93
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to Ms.Pooja Malhotra for her guidance and support inmaking the lab report. I am grateful to her for herconstant encouragement and valuable cognizance
imparted.
I would also like to gratefully acknowledge the co-operation and help of all the faculty members of theinstitute in completion of my lab report.
______________________
-
8/7/2019 Guddu Final Project
5/93
-
8/7/2019 Guddu Final Project
6/93
PROGRAM 1
Write a program in visual foxpro tocalculate simple interest
Design view of the table for the program
Steps for making a program
Step 1: For creating a table first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->Table.
Step 3: Now enter the fields along with its type and width.
Step 4: Enter the records as per your requirement.
Step 5: Now choose Program option and write the program
according to your requirement.
Step 6: run the program and the output will be displayed
Name Type Width
Principle Integer 4
Rate Integer 4
Time Numeric 10
-
8/7/2019 Guddu Final Project
7/93
TABLE
-
8/7/2019 Guddu Final Project
8/93
PROGRAM
use si
input"enter principle"to p
input"enter rate"to r
input"enter time"to t
SI=p*r*t/100
? SI
-
8/7/2019 Guddu Final Project
9/93
OUTPUT
-
8/7/2019 Guddu Final Project
10/93
PROGRAM 2
Write a Program to update the Account
Balance depending on the type of
transaction.
Design view of the table for the program
Name Type Width
Accno Character 10
Acctype Character 10Accholder Character 10
Transtype Character 10
Amount Integer 4
Steps for making a program
Step 1: For creating a table first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->Table.
Step 3: Now enter the fields along with its type and width.
Step 4: Enter the records as per your requirement.
Step 5: Now choose Program option and write the program
according to your requirement.
Step 6: run the program and the output will be displayed.
-
8/7/2019 Guddu Final Project
11/93
TABLE
-
8/7/2019 Guddu Final Project
12/93
PROGRAM
use table1
accept"enter the accno of acchlder"to a
input"enter amount"to b
accept"enter the transtype"to j
do while .not. EOF()
if(accno=a)
?"account no of accholder"
?accno
?"name of accholder"
?accholder
?"amount before transaction"
?amount
if j='c'
k=amount+b
-
8/7/2019 Guddu Final Project
13/93
-
8/7/2019 Guddu Final Project
14/93
OUTPUT
-
8/7/2019 Guddu Final Project
15/93
PROGRAM 3
Write a program in visual foxpro toupdate a customers record.
Design view of the table for the program
Name Type Width
Accno Character 10
Name Character 10Phone Character 10
Address Character 10
Balance Integer 4
Acctype Character 10
Steps for making a program
Step 1: For creating a table first click on vfp98, then click onVFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->Table.
Step 3: Now enter the fields along with its type and width.
Step 4: Enter the records as per your requirement.
Step 5: Now choose Program option and write the program
according to your requirement.
Step 6: run the program and the output will be displayed.
-
8/7/2019 Guddu Final Project
16/93
TABLE
-
8/7/2019 Guddu Final Project
17/93
PROGRAM
use customerrecord
accept"enter the accno of d customer"to a
accept"whether u want to update or not"to b
do while .not. eof()
if (accno=a and b='y')
edit
?accno
?name
?phone
?balance
?address
Endif
-
8/7/2019 Guddu Final Project
18/93
Skip
Enddo
close databases
-
8/7/2019 Guddu Final Project
19/93
OUTPUT
-
8/7/2019 Guddu Final Project
20/93
DO WHILE LOOP
store 100 to number
do while number
-
8/7/2019 Guddu Final Project
21/93
FACTORIAL OF 5 THROUGH FOR LOOP
store 1 to istore 5 to n
for i=1 to n-1
n=n*i
endfor
?n
-
8/7/2019 Guddu Final Project
22/93
FACTORIAL OF 5 THROUGH DO WHILE LOOP
store 1 to i
store 5 to n
do while(i
-
8/7/2019 Guddu Final Project
23/93
Square root of all even numbers between 10 to 20
For number=10 to 20 step2? sqrt(number)
Endfor
-
8/7/2019 Guddu Final Project
24/93
Square root of all numbers between 10 to 20
For number=10 to 20 step1
? sqrt(number)
endfor
-
8/7/2019 Guddu Final Project
25/93
Square root of all odd numbers between 10 to 20
For number=11 to 19 step2
? sqrt(number)
Endfor
-
8/7/2019 Guddu Final Project
26/93
-
8/7/2019 Guddu Final Project
27/93
STEPS FOR DOING A COMMAND
Step 1: For Doing a Command first click on vfp98, then click on VFP6(Visualfoxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new ->Table.
Step 3: Now enter the fields along with its type and width.
Step 4: Enter the records as per your requirement.
Step 5: Now in the command box enter the command as per your requirement.
Step 6: As you press the enter button the output of the desired command will bedisplayed.
THESE STEPS ARE APPLICABLE FOR ALL COMMANDS
CREATE COMMAND
Design view of the table
-
8/7/2019 Guddu Final Project
28/93
Table
-
8/7/2019 Guddu Final Project
29/93
CREATE COMMAND
Create table1
-
8/7/2019 Guddu Final Project
30/93
List
SET COMMANDS
-
8/7/2019 Guddu Final Project
31/93
? date ()
? time ()
Set clock on
Set clock off
Set clock to 08,66
Set commands can be performed without a table as these are general orbasic commands.
SEEK COMMAND
-
8/7/2019 Guddu Final Project
32/93
Design view of the table
Table
-
8/7/2019 Guddu Final Project
33/93
SEEK COMMAND
-
8/7/2019 Guddu Final Project
34/93
Use mk order last_name
Seek ritika
display
Command
-
8/7/2019 Guddu Final Project
35/93
Use mk order age
Seek age=18
display
Command
-
8/7/2019 Guddu Final Project
36/93
Use mk
Seek cname
Display
-
8/7/2019 Guddu Final Project
37/93
FIND COMMAND
Design view of table
Table
-
8/7/2019 Guddu Final Project
38/93
Command
-
8/7/2019 Guddu Final Project
39/93
Use mk
Set order to city
Find jaipur
List while city=jaipur
-
8/7/2019 Guddu Final Project
40/93
Commands
Use mk
Set order to city
Find goa
List while city=goa
display
Commands
-
8/7/2019 Guddu Final Project
41/93
-
8/7/2019 Guddu Final Project
42/93
Use mk
Set order to name
Find soonamList while namesonam
display
Commands
-
8/7/2019 Guddu Final Project
43/93
Use mk
Set order to age
Find age=10
display
Commands
Use mk
Set order to age
-
8/7/2019 Guddu Final Project
44/93
Find age=15
display
INDEX COMMANDS
-
8/7/2019 Guddu Final Project
45/93
DESIGN VIEW OF THE TABLE
TABLE
-
8/7/2019 Guddu Final Project
46/93
Command
-
8/7/2019 Guddu Final Project
47/93
Use table1
Index on name to name1
list
Command
-
8/7/2019 Guddu Final Project
48/93
-
8/7/2019 Guddu Final Project
49/93
Use table2
Index on name to mani for age >18
list
Command
-
8/7/2019 Guddu Final Project
50/93
Use table2
Index on city to abc unique
list
Command
-
8/7/2019 Guddu Final Project
51/93
Use table2
Set index to name of index
Append blank
edit
Command
-
8/7/2019 Guddu Final Project
52/93
Use table2
Index on city+name to riya
list
Command
-
8/7/2019 Guddu Final Project
53/93
Use table2
Index on name tag name1
List
-
8/7/2019 Guddu Final Project
54/93
BROWSE COMMAND
Design view of the table
-
8/7/2019 Guddu Final Project
55/93
-
8/7/2019 Guddu Final Project
56/93
-
8/7/2019 Guddu Final Project
57/93
Command
Browse for city=new delhiBrowse for pin=110023
list
-
8/7/2019 Guddu Final Project
58/93
Commands
Browse fields name, city, pin, localitylist
-
8/7/2019 Guddu Final Project
59/93
Commands
Browse fields name, city, pin
List
-
8/7/2019 Guddu Final Project
60/93
Commands
Browse fields name, pin, city, localityBrowse for city new delhi
-
8/7/2019 Guddu Final Project
61/93
-
8/7/2019 Guddu Final Project
62/93
Commands
Goto record 4Display
Goto topDisplay
Goto bottomDisplay
-
8/7/2019 Guddu Final Project
63/93
REPLACE COMMANDS
Commands
Goto 2Replace name with rajDisplay
Goto 5Replace pin with 110045display
-
8/7/2019 Guddu Final Project
64/93
LOCATE COMMAND
Design view of table
-
8/7/2019 Guddu Final Project
65/93
Table
-
8/7/2019 Guddu Final Project
66/93
-
8/7/2019 Guddu Final Project
67/93
Commands
locate for name=nishant
display
-
8/7/2019 Guddu Final Project
68/93
Commands
Locate for city=gurgaon and name=nisha
Display
-
8/7/2019 Guddu Final Project
69/93
-
8/7/2019 Guddu Final Project
70/93
-
8/7/2019 Guddu Final Project
71/93
-
8/7/2019 Guddu Final Project
72/93
Table
-
8/7/2019 Guddu Final Project
73/93
Commands
Use address1Display
Display next 4
-
8/7/2019 Guddu Final Project
74/93
-
8/7/2019 Guddu Final Project
75/93
Commands
List name, city
-
8/7/2019 Guddu Final Project
76/93
Commands
List off city
-
8/7/2019 Guddu Final Project
77/93
EDIT COMMAND
Commands
EditList
-
8/7/2019 Guddu Final Project
78/93
-
8/7/2019 Guddu Final Project
79/93
Design a withdrawal transaction
form.
Steps for making a form
Step 1: For creating a form first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->form
Step 3: Now a tool box will open along with a properties box.
Step 4: Drag and Drop the label and text box from the tool
window.
Step 5: Now enter the field name in the properties column as
per your requirement.
Step 6: Add the command buttons from tool box.
Step 7: Now run the form to get the result.
-
8/7/2019 Guddu Final Project
80/93
-
8/7/2019 Guddu Final Project
81/93
Design a Cash/Cheque deposit
Transaction form.
Steps for making a form
Step 1: For creating a form first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->form
Step 3: Now a tool box will open along with a properties box.
Step 4: Drag and Drop the label and text box from the tool
window.
Step 5: Now enter the field name in the properties column as
per your requirement.
Step 6: Add the command buttons from tool box.
Step 7: Now run the form to get the result.
-
8/7/2019 Guddu Final Project
82/93
-
8/7/2019 Guddu Final Project
83/93
Design a Demand draft or bankers
Cheque form.
Steps for making a form
Step 1: For creating a form first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->form
Step 3: Now a tool box will open along with a properties box.
Step 4: Drag and Drop the label and text box from the tool
window.
Step 5: Now enter the field name in the properties column as
per your requirement.
Step 6: Add the command buttons from tool box.
Step 7: Now run the form to get the result.
-
8/7/2019 Guddu Final Project
84/93
-
8/7/2019 Guddu Final Project
85/93
-
8/7/2019 Guddu Final Project
86/93
-
8/7/2019 Guddu Final Project
87/93
Design a Customers Detail form.
Steps for making a form
Step 1: For creating a form first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->form
Step 3: Now a tool box will open along with a properties box.
Step 4: Drag and Drop the label and text box from the tool
window.
Step 5: Now enter the field name in the properties column as
per your requirement.
Step 6: Add the command buttons from tool box.
Step 7: Now run the form to get the result.
-
8/7/2019 Guddu Final Project
88/93
-
8/7/2019 Guddu Final Project
89/93
Design a passbook with the following
fields: Date, Cheque No., particulars,Withdrawals, Deposits and Balance.
Steps for making a form
Step 1: For creating a form first click on vfp98, then click on
VFP6(Visual foxpro 6.0)
Step 2: When the screen of VFP6 opens the click on File ->new
->form
Step 3: Now a tool box will open along with a properties box.
Step 4: Drag and Drop the label and text box from the tool
window.
Step 5: Now enter the field name in the properties column as
per your requirement.
Step 6: Add the command buttons from tool box.
Step 7: Now run the form to get the result.
-
8/7/2019 Guddu Final Project
90/93
-
8/7/2019 Guddu Final Project
91/93
-
8/7/2019 Guddu Final Project
92/93
-
8/7/2019 Guddu Final Project
93/93
top related