Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

Highlight the key challenges faced by MNEs when internationalising.

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago