CS Practical File (1) (1)
CS Practical File (1) (1)
I NPUT:
OUTPUT:
3. Remove all the line containing A in a file and
shift
it to another file.
O UTPUT:
INPUT:
4. Create a binary file w name and rollno. Search a given
roll no & display the name, if not found display
appropriate message
INPU
T:
▶
.
OUTPUT:
5. Create a binary file w roll no,name & marks.Input a roll
no
and update the marks.
I NPUT:
OUTPUT:
6. WRITE A RANDOM NO GENERATOR B/W 1-
6
(DICE)
INPUT: OUTPUT:
8. create a csv file by entering user id and
password
read and search the password for given user id.
I NPUT:
OUTPUT:
9. Print the A
pattern: A B
A B C
A B
INPUT AND A
OUTPUT:
10. TO implement linear
search.
INPUT: OUTPUT:
11. To implement bubble sort.
I NPUT: OUTPUT:
15. Number guessing
game.
inpu output
t
16. ROCK,PAPER &
SCISSORS.
INPUT : OUTPUT:
i.) To modify a datatype using ALTER.
INPUT: OUTPUT:
ii). TO DISPLAY DATA IN DESCENDING
ORDER.
.
iii.) To add a column name score and add
values.
INPUT OUTPUT:
:
iv.) To use max,min,sum
&count.
INSTALLATION :
USAGE
▶
.
Usage:
20.)Add_And_Display():To input details of a digital device(device No, device
Name, brand, price, stock Qty) and store it in the table DIGITAL_DEVICES. The
function should then retrieve and display all records from the DIGITAL_DEVICES
table where the price is greater than 50000.
INPUT
OUTPUT
BIBLIOGRAPHY