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

Create a base class called shapes. use this class t store two double type values that could be used to compute the area of figures.dreive two specific classes called triangle and rectangle from the base...


Calculate area of triangle and rectangle. Get the values from the area function that is calculated by both classes then display that area using your own class.

Sep 06, 2012 | Acer Computers & Internet

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

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

1 Answer

Give a name of the baby boy and girl which meaning is Leaders,Healed by God, and Gods Precious Gift


creat a class FLOAT that contains one float data member overloaded all the four arithmatic operations sothat they operate on objects of float?

May 04, 2010 | ArcMedia ABC of Baby Names

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

2 Answers

Can I get the asswer for the below questions


A book shop maintains the inventory of books that are being sold at the shop. The list has details like author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the system searches the list and displays a suitable message if it is not available. If it is available, the system displays the book details and requests for the number of copies required. If the copies are available, the total cost of the copies requested is displayed, otherwise the message ‘copies not in stock’ is displayed.
Design a system using a class called BOOKS with suitable member functions and constructors. Use new operator in constructors to allocate required memory space.

Nov 16, 2008 | Computers & Internet

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

Related Topics:

428 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

18381 Answers

Computer Links

Level 3 Expert

2385 Answers

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

Answer questions

Manuals & User Guides

Loading...