Java basic question...
- Design a Java Application project for maintaining Employee Information in a company. Follow the instructions below for further details.
(i) Create a class named EmpDetails.
(ii) Declare variables empname as String (To hold employee name), empid as Integer (To hold employee id), emp_desig as String (To hold designation of the employee) and basic as Integer (To hold the basic salary of the employee).
(iii) Define and declare a method named read_data( ) that reads the name, id, designation and basic salary of the employees from the user.
(iv) Define and declare a method named salary( ) that calculates the gross salary of all the employees from the basic salary. (Gross Salary = Basic Salary â?? EPF â?? Socso where EPF is 11% of Basic Salary and Socso is 1% of Basic Salary)
(v) Define and declare a method named show_data( ) that prints the name, id, designation and gross salary of all the employees to the user.
(vi) The program should enable the user to have the database of atleast 25 employees.
(vii) Create another class named Employee and declare the main( ) method in it.
(viii) Create object for EmpDetails in the main( ) method and use the same to access the methods.
(ix) Present the output in a table neatly.
View Answers
May 15, 2012 at 12:10 PM
(iv) Define and declare a method named salary( ) that calculates the gross salary of all the employees from the basic salary. (Gross Salary = Basic Salary - EPF - Socso where EPF is 11% of Basic Salary and Socso is 1% of Basic Salary)
Related Tutorials/Questions & Answers:
Java basic question...Java basic question...
Design a
Java Application project...), emp_desig as String (To hold designation of the employee) and
basic as Integer (To hold the
basic salary of the employee).
(iii) Define and declare a method
basic questionbasic question how we create a new table with the same structure and data of another table
Advertisements
java basicjava basic
java program for finding LCM and HCF
java basicjava basic write
java program to evaluate 1+x^2+x^3+x^4+............+x^n
Java basicJava basic How can I Use Eclipse to create a project and write a hello world
java application
java basicjava basic i need to give a hexadecimal input (0x71014802 and 0x8c2a0000) and want to get a MIPS instruction code(assembly level lang.):the output is not a matter... i want to create a package and then input converted converted
java core basic problemjava core
basic problem my
question is:
write a program that illustrates interface inheritance. interface P is extended by P1 and P2. interface... methode. class
Q impliments P12 Instantiate
Q and invoke each of its methods.Each
java core basic problemjava core
basic problem my
question is:
write a program that illustrates interface inheritance. interface P is extended by P1 and P2. interface... methode. class
Q impliments P12 Instantiate
Q and invoke each of its methods.Each
Basic Java TutorialBasic Java Tutorial Hi,
Where is the url of
Basic Java Tutorials on roseindia.net?
Thanks
Hi,
You can Learn
Java in a Day also?
Thanks
basic java - Java Beginnersbasic java oops concept in
java ? Hi Friend,
Please visit the following links:
http://www.roseindia.net/
java/beginners/oop-in-java.shtml
http://www.roseindia.net/
java/learn-
java-in-a-day/oops.shtml
Thanks
Basic on J2ee - Java BeginnersBasic on J2ee J2EE is a platform that helps us to develop and deploy enterprise application.It follows the component based architecure.
So... to achieve the low level funcinality required for the components.
My
question now
Question in Java ?? Question in
Java ?? Welcome every One ,I have
Q in
Java :
Write aprogram that print the falewing table using SQRT method in the Math Class?
Number squrfoot
Question in Java ??Question in
Java ?? Welcome every One ,I have
Q in
Java :
Write aprogram that print the falewing table using SQRT method in the Math Class?
Number
0 ,2,
.
.
.
,18,20
squrfoot
00000
1.4142
5.2426
5.4721
Question in Java ??Question in
Java ?? Welcome every One ,I have
Q in
Java :
Write aprogram that print the falewing table using SQRT method in the Math Class?
Number
0 ,2,
.
.
.
,18,20
squrfoot
00000
1.4142
5.2426
5.4721
BASIC Java - Java TutorialsBasic Java Syntax
This tutorial guide you about the
basic syntax of the
java... of the
java which is applicable to all
java
program :
Case Sensitive
Java
Java... in
java, the first letter of class should be
in the upper case. All the other
Question on javaQuestion on java why
java is not purely oop?
java is not purely OOP because
1.) Multiple Inheritance is not supported.ADS_TO_REPLACE_1
2.) It uses primitive data type.
3.) static method can be called without
Question Java>?Question Java>? **ïâ??· Create a new class called Bank and in the main method use class Account (lab 4) to create an array of 10 accounts.
ïâ??· Enter data for all accounts (account number,name, balance).
ïâ??· Add
java question java question Create a class called Complex to perform arithmetic operations with complex numbers.
1- Use double variables to represent the fields of the class.
2- Provide a no-argument constructor with default values in case
top 20 basic programm of javatop 20
basic programm of java what is the top 20 rule to learn the
basic of
java.
Learn
Java through the following links:
http://www.roseindia.net/
java/
http://www.roseindia.net/
java/beginners/index.shtml
java question :)java question :) write
java program to use vector in ArrayList with add, remove,sort
import java.util.Vector;
public class... Element MUAYAD");
vc.add("Vector Element
JAVA");
vc.add("Vector Element
Basic problem for Java expertsBasic problem for
Java experts This assignment will test your knowledge of
Arrays
Array searching
Array sorting
Array processing
Specification
An athletics club require a simple statistical analysis program for analysing lap
Core java BasicCore
java Basic How to compile a program using the package statement at the first line.Do I have to create a a Seperate Folder with the name of the package in my directory.Please tell me the steps
java basic - Development processjava basic Hi,
I write a program for printing string n no of times.i gave string in console.if i gave '&' or '|' or '>' or '<'.so i want... for solving the problem and visit to :
http://www.roseindia.net/
java/beginners
Java Basic - AppletJava Basic My Applet Programs are Compiling as well as Running properly.
But when I close the Applet window I am getting an Error Message as:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
and also 10
java questionjava question the purpose of defining multiple constructor in
java JAVA QUESTIONJAVA QUESTION How to view image on Frame in swing(or)awt in
Java JAVA QUESTIONJAVA QUESTION How to view image on Frame in swing(or)awt in
Java JAVA QUESTIONJAVA QUESTION How to view image on Frame in swing(or)awt in
Java java questionjava question what is the difference between path and classpath in
java java questionjava question How to find the longest and shortest line from the file in case of
java and
java program should read the filename from the keyboard
java questionjava question Please, give me sample program for insert Audio(sound) on Frame in swing in
java java questionjava question how to write a
java program that, given a friend name , display the phone number and the email address for that friend
Is it possible to learn basic Java in a month?Is it possible to learn
basic Java in a month? Hi,
I am big fan... its right time to learn
Java, web programming and make career in Software field.
Is it possible to learn
basic Java in a month?
Thanks
Is it possible to learn basic Java in a month?Is it possible to learn
basic Java in a month? Hi,
I am big fan... its right time to learn
Java, web programming and make career in Software field.
Is it possible to learn
basic Java in a month?
Thanks
Is it possible to learn basic Java in a month?Is it possible to learn
basic Java in a month? Hi,
I am big fan... its right time to learn
Java, web programming and make career in Software field.
Is it possible to learn
basic Java in a month?
Thanks
Is it possible to learn basic Java in a month?Is it possible to learn
basic Java in a month? Hi,
I am big fan... its right time to learn
Java, web programming and make career in Software field.
Is it possible to learn
basic Java in a month?
Thanks
Is it possible to learn basic Java in a month?Is it possible to learn
basic Java in a month? Hi,
I am big fan... its right time to learn
Java, web programming and make career in Software field.
Is it possible to learn
basic Java in a month?
Thanks
Is it possible to learn basic Java in a month?Is it possible to learn
basic Java in a month? Hi,
I am big fan... its right time to learn
Java, web programming and make career in Software field.
Is it possible to learn
basic Java in a month?
Thanks
java questionjava question anyone provide the code to call c++ function from
java
Here you will find details how to implement the c++ into the
java.
http://www.javaworld.com/javatips/jw-javatip23.html
Java QuestionJava Question can u give me one expample in which conditions we... in
java includes only abstract methods i.e. methods have signatures only (or we... in
java defines that it must be implemented by any class to make use of it.
One
java questionjava question input any number and check if sum of alternate digit is palindrome
java questionjava question what are the exactly J2EE concepts..
struts and hybernates coming under which catagiry
java questionjava question how to create date and time based pgm in
java... in db table if date and time crossed automatically update in the db and inform to login user as pop ups
http://www.roseindia.net/jsp/loginstatus.shtml
java questionjava question i wrote to
java code to get data populated in the Revision field of table InventDim
2.Failing to successfully do the above, i tried to use the ConfigId field of table InventDim for the same purpose, by labeling
java questionjava question Can any one send me the source code to get confirmation after the successful registration to our mobile
java questionjava question when we use the Abstract class and interface?
Please visit the following link:
Abstract class and Interface