Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write C++ code for the following: use only #include library, add comment and show output. Declare a class Salary it should have the following members

Write C++ code for the following:
use only #include library, add comment and show output.
image text in transcribed
image text in transcribed
Declare a class Salary it should have the following members i. An integer called pay Amount (holds the amount of salary) ii. A float called income Tax Percentage (holds the % of income that is deducted as tax) Declare a class Staff it should have the following members: i. a char pointer to point to a name called namePtr (to save a location of the char array that holds the name) ii. an object of class Salary iii. a char pointer to point to the job description called jDescPtr (to save a location of the char array that holds the job description) Add a third question to make a node class that has two data members: a An object of the class Staff A pointer that can point to the next Node, called next

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

Students also viewed these Databases questions

Question

identify the symptoms of overtraining and burnout;

Answered: 1 week ago