List of bluej Programs
Simple programs
1.Write a program to find out the area of a rectangle2.Write a program to swap two values without using 3rd variable
3.Write a program to enter 2 values,print quotient and remainder after dividing the first number by the second number
4.Write a program to enter the salary of an employee. Calculate and print the 18% bonus on it. also Print the gross salary which is salary + bonus.
5.Write a program to enter the perimeter of a rectangle,which is equal to the perimeter of a square.Find out the area of the square.
6.Write a program to enter the year of birth of a person.Calculate his/her age.
Condition based programs
1.Write a program to check whether the number is even or odd.2.Write a program to enter 2 numbers. Print the smaller between these two.
3.Write a program to enter a values,check whether it is positive or negative or equal to zero.
4.Write a program that will enter cost amount and selling amount. Calculate the profit or loss occurred .
5.Write a program to enter the salary of an employee. If his salary is more than equal to 10000, then print bonus amount which is 12% on the salary, otherwise calculate the bonus which is 10% on the salary. Calculate the total salary which is salary + bonus.
6.Write a program to enter the age of a person. Check whether he or she is eligible to vote or not.
Pattern based programs
Advanced programs
1.Write a program to design a truth table.2.Write a program to design a upside down Mirror Matrix.
3.Write a program to Enter a matrix of m x n.Print its mirror image.
4.Write a program to enter a number and check whether it is a Trimorphic number or not.[If the cube of a number ends with that numbe itself ,then the number is called the Trimorphic number. Example:n = 5
cube of n = 125 which ends with 5.
Therefore 5 is a Trimorphic number.
5.Write a program that will accept a sentence which must end with either '.' or '!' or '?'.Now check and print the palindrome words and frequency of the palindrome words.
6.Write a program to enter a matrix of size m X n where m and n must be greater than 2 and less than 6.Print the saddle point if any.A saddle point in a matrix is an element which is minimum in its row and maximum in its column.
ADVERTISEMENT
