Cc-202(1) Scientific Computinmg
Cc-202(1) Scientific Computinmg
BCA IV SYLLABUS
COURSE CREDIT 3
LEARNING OUTCOMES
On the completion of the course practically students will:
1. Understand the java programming and Object Oriented Programing concepts.
2. Understand the concepts of Interface, Exception handling, Threading, and Package.
3. Understand the basic concepts of Applet.
DETAIL SYLLABUS
TEACHING
UNIT TOPIC / SUB TOPIC HOURS
1 Java Introduction 10
Write a program to evaluate simple interest of a given principle, rate and time.
1
A motor cycle dealer sells two-wheelers to his customer on loan, which is to be
repaid in 5 years. The dealer charges simple interest for the whole term on the
day of giving the loan itself. The total amount is then divided by 60(months) and
2
is collected as equated monthly instalment (EMI). Write a program to calculate
the EMI for a loan of Rs. X, where X is given from command line argument. Print
the EMI value in rupees.
A car accessories shop assigns code 1 to seat covers, 2 to steering wheel covers ,
3 to car lighting and 4 for air purifiers. All other items have code 5 or more.
While selling the goods, a sales tax of 2% to seat covers ,3% to steering wheel
3 covers, 4% to car lighting, 2.5% to air purifiers and 1.2% for all other items is
charged. A list containing the product code and price is given for making a bill.
Write a java program using switch statements to prepare a bill.
Write a java program to scan 3 integer values from the command line argument
4 and display the maximum number using conditional operator.
Write a program to calculate the hypotenuse of right angled triangle when other
5 sides
of the triangle are given. (Hypotenuse = square root (x*x + Y *Y))
Write a program to calculate the area of square and rectangle by overloading
6 the area method.
Create a complex number class. The class should have a constructor and
7 methods to add, subtract and multiply two complex numbers and to return the
real and imaginary parts.
A shop during festival season offers a discount 10% for purchase made up to
Rs.1,000,
12% for purchase value of Rs.1,000 or more up to Rs 1,500 and 15% for
purchase value
8 of Rs.1,500 or more. Write a program to implement the above scheme for a
given sales
and print out the sales and print out the sales value, discount and net amount
payable by
a customer. Create necessary methods and constructors.
A bank gives 6.5% per annum interest on deposits made in that bank. Write a
program to calculate the total amount that a person will receive after the end of
9 5 years for a deposit of Rs.5000 for compound interest. Create necessary
methods and constructors too.
Write a java program to display powers of 2 i.e. 2,4,8,16 etc up to 1024 using
10
bitwise operators.
2 Array, Inheritance and Interface 10
Write a program to sort the elements of one dimensional array. Read value of
1
array elements through command line argument.
Write a program to create an array to store 5 integer values. Also initialize the
2 array with 5 numbers and display the array Elements in reverse order.
Write an interface called Exam with a method Pass(int mark) that returns a
Boolean. Write another interface called Classify with a method Division(int
average) which returns a string. Write a class called Result which implements
8 both Exam and Classify. The pass method should return true if the marks is
great
Create class calculation with an abstract method area( ). Create Rectangle and
9 Triangle subclasses of calculation and find area of rectangle and triangle.
The abstract Vegetable class has four subclasses named cabbage, carrot and
potato. Write an application that demonstrates how to establish this class
hierarchy. Declare one instance variable of type string that indicates the color of
10
a vegetable. Create and display instances of these object. Override the toString()
method of object to return a string with the name of the vegetable and its color.
handling code to catch all the possible runtime exceptions likely to be generated
in the program.
Write a program which takes the age of 5 persons from command line and find
the average age of all persons. The program should handle exception if the
8
argument is not correctly formatted and custom exception if the age is not
between 1 to 100.
Write an application that converts between meters and feet. Its first command-
line argument is a number and second command line argument is either
"centimeter" or "meter". If the argument equals "centimeter" displays a string
reporting the equivalent number of meters. If this argument equals "meters",
9 display a string reporting the equivalent number of centimeter. If unit is not
given properly then generate custom exception Unitformatexception. If first
argument is not proper format then generate numberformatexception.
Generate other exception as per requirements. (1 meter=100 centimeter)
Write a program that accepts 5 even numbers from command line , if any of the
10 numbers is odd then throw custom exception OddException and count such
invalid numbers.
4 Multithreading and Applet 10
Write an application that starts two thread. First thread displays even numbers
in the range specified from the command line and second thread displays odd
numbers in the same range. Each thread waits for 300 milliseconds before
1 displaying the next numbers. The application waits for both the thread to finish
Write a program that create and starts five threads. Each thread is instantiated
from the same class. It executes a loop with ten iterations. Each iteration
2 displays the character 'x' and sleep for 500 milliseconds. The application waits
for all threads to
Write a java program to create 2 threads each thread calculates the sum and
average of 1 to 10 and 11 to 20 respectively. After all thread finish, main thread
3
runnable interface.
4
Create an applet which draws a line, rectangle and filled circle in applet display
5 area.
TEXT BOOK/S:
Programming in Java
Oxford Publication
By Sachin Malhotra and Saurabh Choudhary
REFERENCE BOOKS:
1. Programming in Java 2
Jaico publishing house
By Dr. K. Somasundaram
2.The Complete Reference Java2
TMH Publication
By Herbert Schildt
WEB RESOURCES:
1. docs.oracle.com/javaee/6/tutorial/doc/girgm.html
2. docs.oracle.com/javaee/6/tutorial/doc/bnagi.htm
3.www.javatpoint.com
4.www.tutorialspoint.com
REQUIRED SOFTWARE/S
1. Any editor of Windows or Linux/UNIX.
2. JVM version 1.8