Some question of Java programs are given below as a link. Click on that link which one you want to know more. The given links will display the program code and its output. Here I displayed the output as an Image. Check its working by copying that codes to a Notpad or any text editors and then save as a JAVA file.
Questions are given below. Click on that to get answers,
- Write a java program to find area and circumference of a circle?
- Write a java program to calculate electricity bill by reading the consumer no and no of units consumed. The charges for different slabs are given below
up to 50 units Rs 1.5 per unit 50-100 units Rs 2 per unit 100-200 units Rs 2.8 per unit 200-300 units Rs 3.5 per unit above 300 units Rs 4.50 per unit - Write a java program to display n prime numbers?
- Write a java program to display Fibonacci series up to n?
- Write a java program to check whether a given year is leap or not?
- Write a java program to display the Armstrong within range?
- Write a java program to check whether a given number is perfect, abundant, or deficient?
- Write a java program to check whether the given sides can form a triangle. If yes,find area of the triangle?
- Write a java program to find the roots of a quadratic equation?
- Write a java program to compute the mean and SD of 3 numbers. Mean=(a+b+c)/3, SD=√((a-m)²+(b-m)²+(c-m)²)/3
- Write a java program to read an array of 10 numbers and to find the following,
a. Sum of the elements b. Average of the elements c. Maximum of the elements d. Minimum of the elements - Write a java program to sort an array?
- Write a java program to count the number of even numbers, odd numbers, positive numbers, negative numbers and zeros in an array?
- Write a java program to appending two arrays?
- Write a java program to find the sum of the digits and reverse of a given number using class and objects?
- Write a java program to find the volume of cube, rectangular box, cylinder using function overloading?
- Write a java program to create a class complex. Create two objects find the sum of the complex numbers, Read the real and imaginary part using constructor?
- Find the area of a square and a rectangle using overloaded constructor?
- Write a java program to enable arithmetic exceptions?
- Write a java program for generating two threads. One for odd numbers and one for even numbers?
No comments:
Post a Comment