Question: In c++, Create an object-oriented programming (OOP) program that manages the students' contact, include student ID, Name, Address, year in college Email, and Phone. Students'

In c++, Create an object-oriented programming (OOP) program that manages the students' contact, include student ID, Name, Address, year in college Email, and Phone.

Students' Contact Manager

Main Menu ========= 1 - Display all contacts 2 - View a contact 3 - Add a contact 4 - Delete a contact x - Exit program

Requirements Given a comma-delimited text file named students-contact.txt (click to download) that stores the starting data for the program. For the view and delete commands, display an error message if the user enters an invalid contact number. Define a structure to store the data for each contact. When you start the program, it should read the contacts from the comma-delimited text file and store them in an array (or vector) of contact objects. When reading data from the text file, you can read the line and separate the field by a all text up to the next comma (ex. getline() function). When you add or delete a contact, the change should be saved to the text file immediately. That way, no changes are lost, even if the program crashes later. Use an enumeration to specify the valid commands for the program. For demonstration, you need to be able view/add/delete at least 3 students contact

Hints:

- #include for formatting the cout

- #include for the list of students' contact

Student ID Name Address Year in College Email Phone
12345 John Doe 101 Ohlone College Blvd 1 jdoe@ohlone.student.edu 510-112-3344
... ... ... ... ... ...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!