Question about IBM Computers & Internet

1 Answer

Create an employee class contains following members data members:

Employee number,employee_name,Basic,DA,IT,Net_Sal
Member functions to read the data to calculate Net_sal of an employee(DA= 52% OF basic and Income Tax(IT)= 30% of the gross salary.

Posted by on

  • manvarshney2 Mar 03, 2009

    hi,

    Ali



    Thanks alot for helping me.



    Thanks

  • manvarshney2 Mar 04, 2009

    Thanks for reply



    can u help to solve this

    To create a class called STRING and implement the following operations. Display results after every operation by overloading the operator << .

    STRING s1 = "Hello"

    STRING s2 = "World"

    STRING s3 = s1+s2 (use copy constructor)

    I have done this but not sure.

×

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

    Governor:

    An expert whose answer got voted for 20 times.

  • Expert
  • 139 Answers

Class employee
{
int emp_no;
char emp_name[80];
float Basic;
public:
employee(int no, char *name, float basic)
{
emp_no=no;
emp_name=name;
Basic=basic;
}

float int calc_da()
{
return(Basic*52/100);
}

float calc_it()
{
return((Basic+calc_da())*30/100);
}

float calc_netSal()
{return(Basic+calc_da()-calc_it();}
};

Posted on Feb 28, 2009

  • ali_zulfikar
    ali_zulfikar Mar 03, 2009

    Hi manvarshney2,

    Thanks for the comments, dear its my pleasure to help people like you. Any problem if you have ple contact me.



    Thanks again

    Bye



    your frn Zulfikar Ali

×

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What is a friend function? anyone plase explain me this. what is it.


Using the keyword friend on a function declaration in class A permits declaring a function outside of the class, which is able to access private and protected members of class A.

A friend class, is a relationship where another class B is given access to the private and protected members of class A.

A few good examples are given in the following article:

Friendship and inheritance

Cheers!

Apr 13, 2016 | Sun Java Programming Language (cdj-275)

1 Answer

In c create a class called car having members model no,year,no of doorsand mileage and have member functions to add and modify the members of the car


create a class called date that includes three pieces of information as data members-a month (type int), a day (type int) and a year (type int) in c++

Aug 19, 2010 | Borland Turbo C++ 3.0 Full Version...

1 Answer

Differentiate between nested and inner classes.Explain with examole


best shot that can attempt, hope it helps

Nested Classes vs. Inner Classes
A nested class is a class whose definition appears inside the definition of another class, as if it were a member of the other class. For example, if a program contains class A { class B { // fields, methods of class B... } // fields, methods of class A... } then class B is a nested class of class A. Code outside of the methods of class A can refer to class B by calling it A.B, using the same dot notation as for field and method references. Within the methods of class A class B can be used without qualifying the name. B could be hidden from code outside of class A by declaring it private, just as with fields and methods.
A nested class like B is known as an inner class. An inner class has access to the fields of an instance of its enclosing class. For this reason, an instance of B can only be created in association with an instance of A, using the expression /it instanceA.new A.B(...) outside of A's methods, where instanceA is an instance of A, and
new B(...) inside of A's methods. The new instance of B also knows about the enclosing instance of A, and can refer to it using the expression
A.this We can think of an instance of an inner class as having two this pointers, one for itself and one for its enclosing instance. An inner class may be nested within another inner class, so an inner class can even have multiple levels of this pointers. A nesting depth more than one level is quite uncommon, however, and should usually be avoided.
A nested class can be declared static, in which case it has reduced access to its enclosing class. For example, if B were declared static above, it could no longer access the instance variables of A, and there would be no associated instance A.this. Static nested classes are known as nested top-level classes, because they are exactly like classes declared outside any other class, except for the way they are named. Instances of a static nested class are created using regular new, as in new A.B(...)

Jun 09, 2010 | Sun Java Programming Language (cdj-275)

2 Answers

What is .net? what are the types?


Hi,
.net is a platform which is used for creating standalone and web application. It is Microsoft technology and competitor of Java. .net is not a language but a framework and supports many languages. It supports around 37 languages. But mostly CSharp and vb.net is used for developing the application. Microsoft Visual Studio is used for developing .net applications.
Regards, polysandy

May 31, 2010 | Microsoft ASP.NET Programming with MS...

1 Answer

C++


This is a homework problem. You should not expect folks to answer this. There are multiple questions here, as you know.

If you want to do it, you first need to do is start at the sentence, "Create a class ACCOUNT..."

So, "How do you do create a class?" would be one question.

Answer: It is done with an editor creating two new files, one the file ACCOUNT.h (where the class is declared) and two the file ACCOUNT.cpp (where the class member/functions are defined).

All these answers are in your text book.

THEN, work on the next part, "... that stores customerName, accountNumber, etc."

Do it one part at a time and you can program. The next part is to create two new classes, CUR_ACCT and SAV_ACCT. Like the first one, these will go in their own file, like CUR_ACCT.h and CURR_ACCT.cpp.

Take it slow and do one piece at a time.

Only this way can you learn.

May 27, 2010 | Computers & Internet

2 Answers

CPU Scheduling VB.Net Sample Program


well threading does this for you, look at the thread class and related classess in .net

Jun 02, 2009 | Microsoft Visual Basic .NET Standard 2003...

1 Answer

Create a class called Date in C++


I wrote it for you:
date.cpp
date.h
Remember, this is only a demonstration, so you can learn from it!

Mar 26, 2009 | Computers & Internet

1 Answer

Employee salary sheet in vbscript


scientific calculator code vb

Mar 19, 2009 | Computers & Internet

3 Answers

Payroll system in DBMS. I don't know what data is to be taken.


Firstly you need to determine/state whether you are using a database application, such as Access, MtSQL or MS SQL and programming them to do create this application, or are you using a programming development tool such as Visual Studio, ASP.NET, PHP or the like, as the solution and guidance will be different for each.
In terms of the data design, you should store the data necessary to identify each employee uniquely and each data point per employee needed to calculate their payroll. You should then store the generic (applys to all employees) such as tax rates, in separate tables and call on it to calculate wages and other paystub data.
For instance, the employee first and last names and tax ID should be a sufficient unique identifier. Create a table for just employees, their names, tax ID, start date, schedule, pay rate, number of deductions, direct bank payment data, etc., and whatever else you decide you need for each employee. You can calculate their wages by multiplying their rate by their schedule and applying the appropriate tax rate and medical/witholding deductions as you go, so calculated data does not need to be stored and consume database space. 
You'll likely need a separate table for common data such as tax rates, one for deductions/witholdings, one for holidays, one for vacation accrual rates, one for medical rates, etc. This data if common to employees does not need to be stored per individual, as that would cause redundant replication of data. If the employees are on an hourly rate, rather than a set salary/wage, then you'll need a table of worked hours per employee, akin to their timesheet data. If you use a timesheet/timecard, the entering and storing only the totals and keeping the physical timesheet for backup records should suffice.
Once you design and populate your database as suggested above, then it's a relatively-simple task of calculating the computed paystub data and storing the salient resulting datapoints for the record.
Consider a reporting application, such as Crystal Reports, for your printing needs, as its far easier to configure Crystal or similar product to format reports, paystubs, checks, etc., than coding these from scratch.
Hope this helps.

Dec 25, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

427 people viewed this question

Ask a Question

Usually answered in minutes!

Top IBM Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18333 Answers

Donald DCruz
Donald DCruz

Level 3 Expert

17129 Answers

Are you an IBM Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...