Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions