Answered You can hire a professional tutor to get the answer.
Warehouse 31 Artifact Catalog CIS 150 - Assignment 3 Due: Monday, Dec. 6th by 11:59pm Description Warehouse 31 is a storage facility that holds...
I summited the question as doc.This is what I have so far. But I'm keep getting errors.Please, help.#include<iostream>#include<string>#include<fstream>using namespace std;struct art{string name;string month;int year;string fName;string lName;};void List (art[],int);void Search (art[],int);void Add (art[],int&);void Delete (art[],int&);int main(){art artifact[31];string filename;ifstream inFile;string temp;char menu;int counter = 0;cout << "Enter a filename: ";cin >> filename;inFile.open(filename.c_str());while(!inFile.eof()){getline(inFile, artifact[counter].name);getline(inFile, artifact[counter].month);getline(inFile, artifact[counter].month);getline(inFile, temp);artifact[counter].year=atoi(temp.c_str());getline(inFile, artifact[counter].fName);getline(inFile, artifact[counter].lName);counter++;}do{cout <<"Artifact Menu" <<endl;cout << "List: L" <<endl;cout << "Search: S"<<endl;cout << "Add: A" <<endl;cout << "Delete: D" <<endl;cout << "Quit: Q" <<endl;cout << "Choose an option: ";cin >> menu;switch(menu){case'L':List(artifact);break;case'S':Search(artifact);break;case 'A':Add(artifact);break;case'D':Delete(artifact);break;default:}}while(menu!='q');system("PAUSE");return 0;}void List(art[],int counter);{for(int i=0; i<counter; i++){cout << artifact[i].name << endl;cout << artifact[i].month<< " " << artifact[i].year << endl;cout << artifact[i].fName<< " " << artifact[i].lName << endl;}}void Search (art[],int counter);{string item;cout << "Name an item: ";getline(cin,item);for (int i=0; i < counter; i++){if(item== artifact[i].name){cout << artifact[i].name << endl;cout << artifact[i].month << endl;cout << artifact[i].year << endl;cout << artifact[i].fName << endl;cout << artifact[i].lName << endl;}}}void Add (art[],int counter);{cout << "Enter artifact name: ";getline(cin, artifact[counter].name);cout << "Enter artifact month: ";getline(cin, artifact[counter].month);cout << "Enter artifact year: ";getline(cin, temp);artifact.year=atoi(temp.c_str());cout << "Enter artifact owner's first name: ";getline (cin, artifact[counter]. fName);cout << "Enter artifact owner's last name: ";getline (cin, artifact[counter]. lName);counter++;}void Delete (art[],int&);{string item;cout << "Type the artifact that you want to delete: " << endl;getline(cin,item);if(item == artifact[i].name){counter --;artifact[i].name = artifact[counter].name;artifact[i].month = artifact[counter].month;artifact[i].year = artifact[counter].year;artifact[i].fName = artifact[counter].fName;artifact[i].lName = artifact[counter].lName;}}