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
- #include
Student ID | Name | Address | Year in College | 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started