Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the program listed below, include a menu (highlighted below) that offers the

ID: 3638016 • Letter: I

Question

In the program listed below, include a menu (highlighted below) that offers the user the following samples:

1 - add an employee
2 - modify employee data
3 - delete an employee
4 - exit this menu

#include <iostream>

using namespace std;

class employee

{

private:

int id, maxHours;

float payRate;

public:

void setInfo (int pin, float pay, int hours)

{

id = pin;

payRate = pay;

maxHours = hours;

}

void viewInfo () // No parameters req.

{

cout << id;

cout << endl << payRate;

cout << endl << maxHours;

}

};

int main ( )

{

int pin, hours, record;

float pay;

employee empInfo[1000];

cout << "Enter employee 3 digit ID: ";

cin >> pin;

cout << "Enter employee pay rate: ";

cin >> pay;

cout << "Enter employee max hours: ";

cin >> hours;

empInfo[pin].setInfo(pin, pay, hours);

cout << "Enter the employee ID# of the record you wish to view: ";

cin >> record;

empInfo[record].viewInfo();

return 0;

}

Explanation / Answer

Employee Management Database System #include #include #include #include #include #include #include #include class group { private: struct person { char flag; char empcode[5]; char name[40]; int age; float sal; int day; int month; int year; }p; fstream file; public: group(); void addrec(); void listrec(); void modirec(); void delrec(); void recallrec(); void packrec(); void exit(); }; void main() { char choice,v; group g; do { clrscr(); struct dosdate_t d; _dos_getdate(&d); // p.day=d.day; // p.month=d.month; // p.year=d.year; // _dos_getdate(&d); gotoxy(12,5); textcolor(6); cprintf("Todays date:"); printf("%d",d.day); cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote