Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use c++ oop concepts only its only one program ok and make separate header and cpp files thanks and use file handling to done this

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

use c++ oop concepts only its only one program ok and make separate header and cpp files thanks and use file handling to done this program.

Mini Project 2 (MP 2) cc1022: Object Oriented Programming CS/SE, SST, UMT Student's Name: Student Id: Total Marks: 100 Submission Instructions: Upload the folder (with your ID as its name) containing your source files and executable file on Moodle by the deadline. A traditional telephone directory is a book listing the names, addresses, and telephone numbers of the people in a particular area. Your task is to develop a telephone directory for UMT students using Object Oriented Programming paradigm in C++. (You don't need to save the records in secondary storage for this project i.e. file handling not required. You can use array or linked list data structure whatever you like.) Your program should display a menu showing possible operations: Telephone Directory: Main Menu 1. Insert a new student 2. Update an existing student 3. Delete a record 4. Search for a student (using name or ID) 5. List directory Select Option [1, 2, 3, 4 or 5]: Once user selects his option, take him to the appropriate sub-menu. For example if user selects 1: Telephone Directory: Insert Menu Enter ID: 110165001 Enter Name: Abc Xyz Enter Address: H.No. 19, St.No.32, Abc Town, Lahore, Pakistan Enter Phone Number: 12345678 Press 1 to save, o to not save: 1 (If user presses 'O' take him to the main menu) Record saved successfully. (If ID already exists, tell user that ID exists, can not insert) Want to insert another record? [y]: (If user presses n take him to the Main Menu, Syed Farooq Ali, farooq.ali@umt.edu.pk cc1022 OOP, Page 1 for y take him to Insert Menu again.) If user selects '2' in the main menu, take him to Update Menu Telephone Directory: Update Menu Enter ID or Name: 110165001 Current Information is: ID: 110165001 Name: Abc Xyz Address: H. No. 19, St.No.32, Abc Town, Lahore, Pakistan Phone: 12345678 Do you want to update [y)?: y take the new information) (If user presses n take him to the main menu, for y Enter New Information: Enter ID: 1234 Enter Name: Abc Def Enter Address: H. No. 19, St. No. 32, Abc Town, Lahore, Pakistan Enter Phone Number: 12345678 Record updated successfully. Do you want to update another record? [y]: (If user presses 'n' take him to the Main Menu, for y take him to the Update Menu again.) If user selects 3' in the Main Menu, take him to Delete Menu Telephone Directory: Delete Menu Enter ID: 110165001 Current Information is: ID: 110165001 Name: Abc Xyz Address: H.No. 19, St.No.32, Abc Town, Lahore, Pakistan Phone: 12345678 Syed Farooq Ali farooq.ali@umt.edu.pk cc1022 OOP, Page 2 Do you want to delete this record [y]?:y (If user presses n take him to the main menu, for y delete the record and give appropriate message) Record deleted successfully. Do you want to delete another record? [y]: (If user presses 'n' take him to the Main Menu, for y take him to the Delete Menu again.) If user selects 4' in the Main Menu, take him to Search Menu Telephone Directory: Search Menu Enter ID or Name: 110165001 Record Found (if record is not found, give appropriate message) ID: 110165001 Name: Abc Xyz Address: H. No. 19, St.No.32, Abc Town, Lahore, Pakistan Phone: 12345678 Do you want to search another record? [Y]: (If user presses 'n' take him to the Main Menu, for y take him to the Search Menu again.) If user selects '5' in the Main Menu, show all the records in the directory Telephone Directory Members Showing All Members: 110165001 Record 1: ID: Name: Address: Phone: Abc Xyz H.No. 19, St.No. 32, Abc Town, Lahore, Pakistan 12345678 Record2: ID: Name: Address: Phone: 110165001 Abc Xyz H. No. 19, St.No.32, Abc Town, Lahore, Pakistan 12345678 Syed Farooq Ali, farooq.ali@umt.edu.pk cc1022 OOP, Page 3 Total N records shown successfully. (N is the total number of directory members) Press 'm' to go to Main Menu: Syed Farooq Ali, farooq.ali@umt.edu.pk cc1022 OOP, Page 4

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

Step: 3

blur-text-image

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

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions