Question
#include using std::cout; using std::cin; using std::endl; //Class Employee //Employee(string fname,stringlname,int salary) //setFirstName(fname); //setLastName(lname); //netMonthlySalary(salary); // //setFirstName(string fname) //first_name = fname: // //setLastName(string lname) //last_name
#include using std::cout; using std::cin; using std::endl;
//Class Employee
//Employee(string fname,stringlname,int salary) //setFirstName(fname); //setLastName(lname); //netMonthlySalary(salary); // //setFirstName(string fname) //first_name = fname: // //setLastName(string lname)
//last_name = lname; // //setMonthlySalary(int salary)
// if (salary <= 0) // salary = 0; // if (salary > 0) // monthly_salary = salary;
//private: string first_name; //string last_name;
// //int main() // // int yearly_salary; // int salary_raise; // int revised_salary; // Employee employeeA("AAA" , "NNN",1000); // Employee employeeB("SSS", "QQQ",1500); // cout<< "Employee-A Full Name : " << employeeA.getFirstName(); // cout << "' << employeeA.getLastName()< // cout << "Employee-A Yearly Salary : " << employeeA.getMonthlySalary() <
// cout << " "; // cout << "Employee-B Full Name : " << employeeB.getFirstName(); // cout << " " << employeeA.getLastName()< // cout << "Employee-A Yearly Salary : " <
//cout << " "; // yearly_salary = 12 * employeeA.getMonthlySalary(); //cout << "Employee-A Yearly Salary : " << yearly_salary << edl;
//yearly_salry = 12 * employeeB.getMonthlySalary(); //cout << "Employee_B Yearly Salary : " << yearly_salary << endl;
//cout << " "; //salary_raise = (10* employeeA.getMonthlySalary() ) / 100; //revised_salary = (salary_raise + employeeA.getMonthlySalary() ) / 12; //employeeA.setMonthlySalary(revised_salary);
//cout << "Employee-A Revised Monthly Salary : " << //employeeA.getMonthlySalary()<
//salary_raise = ( 10 * employeeB.getMonthlySalary() ) / 100; //revised_salary = salary_raise + employeeB.getMonthlySalary(); //employeeB.setMonthlySalary(revised_salary); //cout << "Employee-B Revised Monthly Salary : " << yearly_salary; //return 0; //
#include "stdafx.h" need in c++ language with output can you help please need written right need execution etc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started