Computer Practical
Computer Practical
1. (i) (a) (b) (c) (ii) Attempt any one of the following questions using c++. (10)
Write a menu driven program to input two matrices of size 3x 3 and do the following : Calculate and print their sum Calculate and print their product Exit OR Write a program to sort the array MARKS of size N in ascending order using Bubble Sort Technique OR
(iii) 2.
Write a program to search an element in array B of size N using binary search technique. Assuming array is sorted in Ascending order. Write SQL commands on the basis of the table HOSPITAL : No Name Age Department Datofadm Charges 1 Sameer 65 Surgery 23/02/98 300 2 Priya 25 Orthopedic 20/01/98 200 3 Sakshi 32 Orthopedic 19/02/98 200 4 Veena 45 ENT 01/01/98 300 5 Archana 62 Cardiology 12/01/98 350 6 Arpit 75 Nuclear 13/01/98 650 Medicine 7 Kamal 80 Cardiology 19/02/98 800 (5) Sex M F F F F M M
(a) To show all information about the patients of cardiology department. (b) To list the names of female patients who are in orthopedic department. (c) To list names of all patients with their date of admission in ascending order. (d) To display Patients Name, Charges, Age for only male patients only. (e) To count number of patients with age > 30 .