0% found this document useful (0 votes)
23 views

Lab VIII - Java MCA - IV Semester December 2012 - April 2013 Lab Exercises Task 1: (Week1: 10-12-2012 To 14-12-2012)

This document outlines tasks for a Java lab covering basic programming concepts over 4 months. It includes exercises to get user input, check number properties, perform calculations, and implement arrays and matrices. Students will write programs to find digits in a number, check for prime and palindrome numbers, convert between number bases, calculate simple and compound interest, use a calculator with operators, find quadratic roots, remove duplicate array elements, and perform matrix operations. Functions and classes will be created to modularize the programs.

Uploaded by

sindhuja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Lab VIII - Java MCA - IV Semester December 2012 - April 2013 Lab Exercises Task 1: (Week1: 10-12-2012 To 14-12-2012)

This document outlines tasks for a Java lab covering basic programming concepts over 4 months. It includes exercises to get user input, check number properties, perform calculations, and implement arrays and matrices. Students will write programs to find digits in a number, check for prime and palindrome numbers, convert between number bases, calculate simple and compound interest, use a calculator with operators, find quadratic roots, remove duplicate array elements, and perform matrix operations. Functions and classes will be created to modularize the programs.

Uploaded by

sindhuja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab VIII Java

MCA IV Semester
December 2012 April 2013
Lab Exercises
Task 1: (Week1: 10-12-2012 to 14-12-2012)
Write the Java programming for the following.
1) To get input from the user.
2) Find the number of digits present in a number.
3) Sum of digits of a given number
4) Prime number checking
5) Palindrome checking of a number
6) Palindrome checking of a string

Task 2: (Week2: 10-12-2012 to 14-12-2012)


7) Write a Java Program to get a number and check its validity using IsBinary(), IsDecimal(),
IsOctal() and IsHexa(). Then convert the number into other forms and display the results.
[Note: Create a separate Java class for implementing the above said number checking and
conversion methods].
8) Write a Java program to find the simple interest and compound interest of an amount for a
given period and interest rate. Display the difference among them and find which one yields less
interest.
[Note: Write a separate Java class to find the interest amount]
Develop Java programs for the following using Switchcase statement.
9) Do the basic arithmetic operations of a simple calculator by checking the type of operator.
10) Find the roots of a quadratic equation.
11) Write a Java program to remove the duplicate elements from the array without using an
additional or temporary array.
12) Create a Java class for doing matrix operations like addition, subtraction, multiplication,
inverse, determinant and transpose and check your answer by user input.

You might also like