Skip to main content

BCA 501 INTERNET TECHNOLOGIES PRACTICAL LIST

Internet Technologies Practical Assignment-1 
Write a ‘Java’ program to do the following task :
1. To determine whether the given year is a leap year or not.
2. To check whether the given number is divisible by 5 or not.
3. To check whether the given character is an uppercase letter or lowercase letter or a digit or a special character.
4. To compute the sum of the digits of a given positive integer number.
5. To read any five real numbers and print the average value.
6. To calculate the sum of first N natural numbers.
7. To calculate the average of first N odd numbers.
8. To calculate the average of first N even numbers.
9. To print ASCII value of all characters.
Write a program to do the following tasks:
· Read any two positive numbers say n1 & n2. Assume n1>n2.
· Print all even numbers that lies between n1 & n2.
· Print the total number of an even numbers between n1 and n2.
Write a program to do the following task:
1. To find out the total number of an odd digits within the given number and print the sum of all odd digits.
2. To find out the total number of an even digits within the given number and print the sum of all even digits.
3. To convert the given decimal number into its equivalent binary number.
4. To convert the given octal number into its equivalent decimal number.

Internet Technologies Practical Assignment-2

1. Write a program that find the average of three byte type numbers
2. Write Java program to find the sum of five short type numbers.
3. Write Java Program to perform the Addition and Subtraction of two numbers
4. Write Java Program to perform the bitwise operation on the value of a.
5. Write Java Program to calculate the area of the circle
6. Write Java Program to calculate the area of triangle
7. Write a Java Program to print the factorial of number
8. Write a Java Program to print the multiplication table
9. Write a Java Program to find the simple interest
10. Write a java program to calculate the salary of employee.
a. insert a Name, Basic Pay, loan amount
b. Calculate HRA= 10%, DA= 45%, of basic pay.
c. Add the HRA and DA to basic pay.
d. Subtract the loan amount form basic pay and print it
11. A shop during festival season offers a discount 10% for purchases made up to Rs.1000, 12% for purchase value of Rs.1000 or more up to 1500 and 15% for purchase value of Rs 1500 or more. Write a program to implement the above scheme for a given sales and print out the sales value, discount and net amount payable by a customer.
12. An array of 20 integers is given. Write a java program to arrange them in descending order and print out them.
13. Write a java program to find the product of two matrices A(3,4) and B(4,2)
14. Write a java program to find the largest value from a set of given integers
15. A mark list containing reg no. and marks of three subjects sub1, sub2, sub3. Write a java program to define mark list. Write a constructor to initialize all variables. Write a method called result (int min) where, min indicates the minimum marks for a “Pass” for each subject. This method will declare a candidate “Pass”, if the candidate secures marks in each subject greater than or equal to min. write another overloading method result(int min, int merit), where merit indicates that a candidate who gets a “pass” and average of the three subject equal to or greater than merit eligible for getting a scholarship. Write another class with a main method and try the method for 5 different candidate to determine whether they get “pass” and also determines whether they are eligible for scholarship
Internet Technologies Practical Assignment-3


1. Write an interface called numbers, with a method int process( int x, int y)/. Write a class called sum in which the method process finds the sum of two numbers and returns an int value. Write another class called average, in which the process method returns an int value. Write another class called average, in which the process method finds the average of the two numbers and returns an int.
2. Write a class to sort the given set of n integers in descending order. Include a try block to locate the array index out of bounds exception and catch it.
3. A bank account is operated by a father and his son. The account is opened with an initial deposite of rs 600. Thereafter, the father deposits a random amount between rs. 1 and rs.200 each time , until the account balance crosses rs 2,000. The son can start withdrawing the amount only if the balance exceeds rs 2,000. Thereafter, the son withdraws random amount between rs.1 and rs.150 untill the balance goes below rs 500. Once the balance becomes less than rs.500 , the father deposits amount till it crosses rs.2000 and the process continues. Write a father and son thread to carry out the above process.

4. WAP to create a new thread by implementing runnable interface.
5. WAP to set a new name to main thread and display this new name, priority and thread group.
6. WAP to create multiple threads and show thread synchronization.
7. Define package mypackage with class Number. Define following method for Number class.
i.To find factorial of given number.
ii.To find sum of digit for given number
iii.To find reverse number of given number
iv.To find sum of 1 to N.

8. Write class to test above package and its method.
9. WAP to define two threads t1 and t2 that displays BCA and MCA respectively 50 times
10. WAP to implement stack in java. Define method push, pop and peep.

Comments

Popular posts from this blog

New software continuously scrambles code to foil cyber attacks: Technique sets a deadline on hackers to severely limit chances of success

New software continuously scrambles code to foil cyber attacks: Technique sets a deadline on hackers to severely limit chances of success : As long as humans are writing software, there will be coding mistakes for malicious hackers to exploit. A single bug can open the door to attackers deleting files, copying credit card numbers or carrying out political mischief. A new program called Shuffler tries to preempt such attacks by allowing programs to continuously scramble their code as they run, effectively closing the window of opportunity for an attack.