Professional Documents
Culture Documents
3. The ABC Company shows the sales of different products for 5 years. Create
Bar chart for the following data
YEAR PRODUCT-1 PRODUCT-2 PRODUCT-3 PRODUCT-4
2006
800
80
500
900
2007
1200
190
400
800
2008
400
200
300
1000
2009
1800
400
400
1200
2010
1000
800
900
1000
4. Create a suitable examination data base and find the sum of the marks
(total) of each student and respective class secured by the student rules:
Pass if marks in each subject >=35
Distinction if average>=75
First class if average>=60 but <75
Second class if average>=50 but <60
Third class if average>=35 but <50
Fail if marks in any subject is <35
Display Total, Average marks, Result and Grade of the student.
M4 M5
Maintain the relationship between two tables with REGISTER NUMBER as a Primary
Key and answer the following queries:
Show the list of students with the following fields as one query
REGISTER NUMBER NAME GENDER TOTALMARKS AVG
1. Write a program to calculate and display sum of digits for the given
number?
2. Write a program to check whether given number is prime or not?
3. Write a program to calculate and display factorial of given number by using
recursion?
4. Write a program to implement SELECTION SORT for the given numbers?
5. Write a program for Matrix Multiplication?
6. Write a program to comparison of two strings?
7. Write a program to maintain student details by using structures?
8.
Write a program to perform the following file operations for student data.
(a) Writing data into the file.
(b) Reading data from the file