LIST OF PROGRAMS
LIST OF PROGRAMS
Output:
Output:
Program 3: Write a Program to check if the entered
number is Armstrong or not.
Output:
OR
Output:
Output:
OR
Output:
OR
Output:
Yes
Output:
Program 8: Read a file line by line and print it.
Output:
Program 9: Remove all the lines that contain the
character “a” in a file and write it into another file.
Output:
Program 10 Read a text file and display the number of
vowels/consonants/uppercase/lowercase characters in
the file.
Output:
Stack Concept:
Output:
Queue Concept:
Output:
Output:
#Droping a attribute
mysql> alter table student
-> drop column computers;
Query OK, 0 rows affected (0.93 sec)
Records: 0 Duplicates: 0 Warnings: 0
#Describing table
mysql> desc student;
+--------+----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+----------+------+-----+---------+-------+
| ROLLNO | int | NO | PRI | NULL | |
| NAME | char(10) | YES | | NULL | |
| TELUGU | char(10) | YES | | NULL | |
| HINDI | char(10) | YES | | NULL | |
| MATHS | char(10) | YES | | NULL | |
+--------+----------+------+-----+---------+-------+
5 rows in set (0.14 sec)
#ORDER BY BRANCH
#ACTUAL DATA
mysql> SELECT *FROM STUDENT;
+--------+--------+----------+--------+-------
+-------+
| ROLLNO | BRANCH | NAME | TELUGU | HINDI |
MATHS |
+--------+--------+----------+--------+-------
+-------+
| 102 | MPC | student2 | 60 | 61 | 62
|
| 103 | BIPC | student3 | 70 | 71 | 72
|
| 104 | BIPC | student4 | 80 | 81 | 82
|
| 105 | BIPC | student5 | 90 | 91 | 92
|
| 106 | BIPC | student6 | 40 | 41 | 42
|
| 107 | MPC | student7 | 63 | 64 | 65
|
+--------+--------+----------+--------+-------
+-------+
6 rows in set (0.00 sec)