Thursday, May 27, 2010

Final Year B.Sc Computer Science Practical List

Buzz It
The Record should contain a minimum of 30 programs from Java and Internet programming

PART A JAVA (35 Marks)

1. Write a program to calculate the sum of two complex numbers and display it using a class.
2. Write a program to calculate area and circumference of a circle using class.
3. Write a program to generate n prime numbers.
4. Write a program to create a student class with following attributes. Enrollment number, name of student, any 3 marks & total. Total must be calculated only when the student passes in all the three subjects. The pass mark for each subject is 50. If a candidate fails in any one of the subjects his/her total mark must be declared as zero. Using these conditions write a constructor for this class. Write separate functions for accepting and displaying student details.
5. Write a program to sort a set of numbers using class
6. Write a program to calculate distance between points.
7. Create a class hierarchy that stores information about Airships. Create a base class called Airships that stores the number of passengers and the amount of cargo in bounds that can be carried. Then create two subclasses called airplane and balloon from airships. Airplane stores the type of engine used and range in miles. Balloon stores the type of gas used (hydrogen & helium) and its maximum altitude in feets. Write a program to read and display airplane details and balloon details.
8. Write a program to generate Fibonacci numbers up to n.
9. Write a program to generate strange numbers up to n
10. Create a class Figure that stores the two dimensions. Create an abstract method area in figure. Derive two subclasses Rectangle and Triangle and compute area.
11. Write a program to create and run a thread and then make it sleep.
12. Write a program to illustrate thread priorities. Create three threads and assign priorities.

PART B INTERNET PROGRAMMING(35 Marks)

1. Create a simple HTML document. (Using bold, italics, underline, font, color, sizes, alignment, face etcs).
2. Create a web page with two frames and load different html documents in each frame.
3. Create a web page with different types of lists (ordered list, unordered, and defined lists).
4. Create a web page with four hyperlinks and show the linking documents.
5. Create a web page to accept background color from the user and make the changes to the document using JavaScript.
6. Create a home web page of a college-using html and add moving text.
7. Create a web page to add two numbers. Display the result by clicking a button. Show a confirmation dialog box by using JavaScript.
8. Create a web page to perform division of two numbers, accept numbers from the user by using JavaScript.
9. Create a web page with a student table.
10. Create a web page which has properly aligned paragraphs with images along with it.
11. Create a simple form with all controls.
12. Create an application form with various fields and appropriate front-end validations using JavaScript language.

The Record should contain a minimum of 15 programs from Windows, 15 programs from Visual C++, 10 programs from Assembly Language, and 5 programs from Multimedia. The student have to answer two questions, that are marked by the examiner



Part A Windows Programming (35 Marks)

1 To display a window on the screen and interact with it.
2 To display a text in the center of a window.
3 To display text at mouse clicked position
4 To perform freehand drawing in a window.
5 To draw a line joining 2 points clicked in the window.
6 To draw basic shapes.
7 To fill the shapes using logical pen.
8 To display a digital clock using Timer.
9 To change the cursor in the client area.
10 To display the icon horizontally and vertically in the client area.
11 Design a simple arithmetic calculator (*, +, -, /) using modeless dialog box.
12 Alter the colors in the client area using Timer.

Part B Visual C++ Programming (35 Marks)

1 Reading Data From Key Board and center the text in the window
2 Display text at mouse clicked position.
3 To find sum and reverse of a number using textbox and buttons.
4 Create an application that add and delete data in a List Box
5 Calculate and display Salary slip using checkbox and radio buttons.
6 Display slider position using Slider Control
7 Draw different shapes rectangle, ellipse using menus and corresponding toolbars
8 Create an application with Common Font Dialog box and common Color Dialog box.
9 To write data and read data from the file
10 Create a digital clock using timer.
11 Read keystrokes using MDI and serialization.
12 Create an application with modal dialog box.

Part C Assembly Language Programming (35 Marks)

1. 16 bit addition
2. 16 bit subtraction
3. multi byte addition
4. multi byte subtraction
5. sum of elements in an array
6. sorting in ascending order
7. sorting in descending order
8. search for an element in an array
9. smallest element in an array
10. largest element in an array
11. factorial of an 8 bit data
12. generate ascii code of the key pressed

II BSc computer Science practical list

Buzz It

RDBMS

  1. An examination has been conducted to a class of 10 students and four scores of each student have been provided in the data along with register number, name. Write a PL/SQL code block to do the following:

Assign a letter grade to each student based on the average score in descending order of average score.

The Grading System:

Average Score Grade

90-100 A

75-89 B

60-74 C

50-59 D

0-49 F

The minimum pass for each subject is 50.

  1. Every morning a newspaper vendor gets newspapers in wholesale from a distributor for 60 paise. He sells them in retail for 75 paise. At the end of the day, the unsold papers are returned to the distributor for 30 paise rebate per paper. Write a PL/SQL code block to prepare a report for the newspaper vendor in the following format with 10 weeks data:

Week Bought Sold Return Profit Loss

1 60 30

2 75 62

.. .. ..

10 .. ..

  1. A salary statement contains Name, Basic Pay, Allowance, Total Deduction (includes IT), gross pay and net pay.

Allowance = 20% of Basic pay

Gross pay=Basic pay + Allowance

Deduction=10% of Basic pay

Income tax is calculated on the basis of Annual income under the following condition:

Annual Salary Income Tax

<=30000 Nil

>30000 but <55000 30% of excess over the amount Rs. 30000

>=55000 50% of excess over the amount Rs. 55000

Prepare a pay report of all employees using SQL reports.

  1. A sales file for a shop contains records with following fields: itemid, itemname, sales_price, quantity and total price. Write a PL/SQL procedure to generate sales report.
  2. Consider a hospital information system having the following details : Patient number, patient name, age, doctor, patient type(in/out), consultation charge, blood test charge, x ray charge, other test charges and total fee. Write a PL/SQL stored procedure to retrieve the following:

a) The patients undergone blood test.

b) The patients taken x rays

c) The patients who belong to in-patients category.

  1. Consider a railway system which has the following tables:

a) Passenger – To store passenger details.

b) Flight – To store flight details.

c) PassFlight – To store details regarding passengers traveling in a particular flight.

Write PL/SQL function to display:

a) The passengers name with seat number according to flight number wise.

b) Total number of married female candidates.

c) Male passengers in between ages 18 and 25.

  1. Create a library information system.
  2. Create a hotel bill calculating system.
  3. Create a hostel accounting system.
  4. Create an electricity billing system.

(Rent Rs.20/-)

Slab 1 1 – 40 units à 0

Slab 2 40 – 80 à 40/unit

Slab 3 > 80 à 1.40 + excess of 80

VB PRACTICAL LIST



1. a) To find simple interest

b) To find the sum of n numbers using arrays.

2. Create a simple calculator.

3. Create a scientific calculator.

4. Sort a set of n numbers using Listbox.

5. OLE Container Control.

6. Simulate a standard windows colour box.

7. Stop watch application using timer.

8. Write a VB application using keyboard and form events.

9. Create a student information system using Data Control.

10. Design a web page to get biodata of a person.




DATA STRUCTURES

1. To perform linear search and binary search.

2. Bubble sort.

3. Push and pop to stack.

4. Insertion and deletion to linear queue.

5. To create a linked list and insert and delete a node.

6. To perform pattern matching.

7. To implement towers of Hanoi.

8. To perform tree traversal using recursion.

9. To input a postfix expression and evaluate it.

10. To perform DFS.

11. Selection Sort.

12. Append 2 arrays.

C++

1. To print prime numbers upto n.

2. To generate strange numbers upto n.

3. To add two amounts expressed in rupees and paise.

4. To convert time expressed in hours, minutes and seconds to seconds.

5. To find sum of two lengths expressed in feet and inches.

6. Base Conversion.

7. To concatenate two strings by overloading += operator.

8. To copy strings using pointers.

9. To read and display the publication details using inheritance.

10. To increment a value by overloading ++ operator (Prefix & Postfix).

11. Bookshop Inventory using classes.

12. To read and display student details using classes.