UESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION. AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , salary.cpp )
UESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION. AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , salary.cpp )
UESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION. AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , salary.cpp )
QUESTION PROVIDED IN ATTACH IMAGE KINDLY SEE. PROVIDE OUTPUT AS IT IS SHOWN IN QUESTION.
AND BELOW TEMPLATES PROVIDED CHECK THIS BEFORE MAKING SOLUTION ( main.cpp , salary.cpp )
----------------- TEMPLATES BELOW FOR SOLUTION -----------------------
salary.cpp
#include<iostream> using namespace std; class Salary { public: string name; float HRA,DA,basic; public: Salary(){} Salary(string name,float basic, float hra,float da) { name=name; basic=basic; HRA=hra; DA=da; } public: void calculateSalary(int taxType) { //Fill your code here } };
main.cpp
#include<iostream> #include "Salary.cpp" using namespace std;
int main() { string name; float Basic,HRA,DA; int choice; cout<<"Enter the Name of the employee :"<<endl; cin>>name; cout<<"Enter the Basic pay :"<<endl; cin>>Basic; cout<<"Enter the HRA percentage :"<<endl; cin>>HRA; cout<<"Enter the DA percentage :"<<endl; cin>>DA; cout<<"Enter if the tax is fixed or variable :"<<endl; cout<<"1.fixed"<<endl; cout<<"2.variable"<<endl; cin>>choice;
//Fill your code here
}
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.