Sitemap


Programs

A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of the items buyed. Total cost Discounts (in percentage) Less than Rs.2000 5% Rs.2001 to Rs.5000 25% Rs.5001 to Rs.10000 35% Above Rs.10000 50%

An institution has decided to admit new candidates in different streams on the following criteria: Total marks obtained Stream offered 300 and above Science 200 and above but less than 300 Commerce Below 200 but not below 75 Arts Otherwise Admission is not granted, you have to appear in a qualifying examination WAP to take input total marks obtained in an examination and pint the stream allotted

Define a class Salary as discussed below

Rewrite the following program segment using switch case: char code; if(code==’B’ || code==’b’) System.out.println(“Bank Manager”); if(code==’C’ || code==’c’) System.out.println(“Charted Accountant”); if(code==’D’ || code==’d’) System.out.println(“Engineer”); if(code==’M’ || code==’m’) System.out.println(“Minister”)

Write a class with name employee and basic. Find the gross pay of an employee for the following allowances and deductions.Print name ,basic pay, net pay and gross pay . Dearness Allowance=25%*Basic Pay House Rent Allowance =15%*Basic Pay Provident fund=8.33%*Basic Pay Net Pay=Basic Pay + Dearness Allowance +House Rent Allowance Gross Pay=Net Pay-Provident Fund

A bank offers the following rate of interest for fixed deposit: Time(Years) Rate(%) < 1 9.0 1 to 2 10.0 2 to 3 11.0 > 3 12.0 WAP to accept deposited amount(P), number of years(n) the amount is deposited for and compute the accrued amount for an investor.

Define a class MENU to perform the following operations depending upon the user’s choice(using switch-case) (i) Print absolute value of a number (ii) Print rounded value of a number (iii) Print n raised to power x (iv) Quit

JAVA Program to print following patterns with the help of users choice statement(switch-case).Print appropriate menu with options. (i) using for loop (ii) using while loop 1 2 3 4 5 A 1 2 3 4 A B 1 2 3 A B C 1 2 A B C D 1 A B C D E

JAVA program to define the size of an array, take input its elements, display the array, take input a number and check whether it is present in the array or not. - New!

Java Program to Check Armstrong Number

Java Program to Find Factorial of a Number

Java Program to Swap Two Numbers

Java Program to calculate and display Student Grades

Java program to check disarium number - New!

Java program to check prime number in a given range - New!

Java program to convert a binary number to Decimal [Shortcut Method] - New!

Java program to create a basic and simple ATM machine - New!

Java program to find area of scalene triangle

Java program to find frequency of characters in a string - New!

Java program to find hcf of two numbers - New!

Java program to generate fibonacci numbers

Program to input name of candidate ,roll no.,date of examination and examination centre.

Program to take input a character and convert into its opposite case. Print the original character and new character.

The pension rule of a certain country states that a man receives Rs.50/- a week if he is over 65 years and an extra Rs.20/- if he is over 70 years. A woman receives Rs.45/- a week if she is over 60 years and extra Rs.25/- if she is over 65 years.WAP which takes the sex(M for male, F for female) and age of the person as input print out the amount of weekly pension they would get. If a person is below the pensionable age,a suitable message must be printed.

The telephone department wishes to compute monthly telephone bills

Write a class consumerLIC with name(consume name), pno(policy number), pramt(premium amount) and salary as its data members.Find the gross salary of consumer as Premium amount=15%*salary. Gross salary=salary-Premium amount

No comments:

Powered by Blogger.