Generation

generate functionFri, 31 Mar 2023

Creating a system in C++ using records to enter the data of 10 employees with their numbers and salaries With the possibility of choosing the user It shows the user explanatory messages for the selection Data entry function for employees in records Function of printing employee data from records Function to search for an employee within the records A function to find the largest value in a record A function to arrange employees according to the largest salary

#include <iostream> #include <fstream> #include <string> using namespace std; string arr[10]; int arr2[10]; //int arr3[10]; int i = 0; int j = 0; int k = 0; int l = 0; int s = 0; int m = 0; int o = 0; int p = 0; int main() { int a; cout << "Enter 1 for entering data \n"; cout << "Enter 2 for print data \n"; cout << "Enter 3 for Search \n"; cout << "Enter 4 for find the largest value \n"; cout << "Enter 5 for sorting\n"; cin >> a; if (a == 1) { int b; cout << " Enter 1 for enter data \n Enter 2 for exit data enter \n"; cin >> b; if (b == 1) { string name;

Want to kickstart your project?Use the new AI Studio to create your code