can any one assist in solving this program i have no idea how to add students.
Write a program that manages the students’ information (upto 50 students) and
provides the various functionalities to interact with the information. These
functionalities include:
Add new Student: A new student is added and the user
provides the student’s data for adding new record
Add Student and copy data from existing student. A new
student is added and the student’s data is copied from the
existing student. Existing student can be found provided
the student’s roll number. When this functionality is
performed, duplicate records for same student will exist.
Delete Student: Asks the user to enter the student’s roll
number and deletes the student’s data. [Deletion can be
performed by making the specific student’s attributes (roll
no, name, phone number, batch)empty
Display Student: Displays all student records.
Find/Search a Student (Search should be preformed based on
roll number. [Bonus: Ask the user for the criteria to
search students. User may choose to search by name, by roll
number, phone number or by batch. In case of multiple
matches, all the students should be displayed. For example,
user chooses to search students by batch. In that case, all
the students’ info in the specified batch should be
displayed])
The program’s menu may look like
Press 1 to Add Student
Press 2 to Add Student and copy data from existing student
Press 3 to Delete Student
Press 4 to Display all Students
Press 5 to Find a Student
Press 6 to Exit
Define a Class for students with attributes.
int roll_no ;
char name[30];
char phone_no[15];
int batch;
Define the member functions to implement the functionalities.
Add_Student()
Copy_Add_Student()
Delete_Student()
Display_Student()
Search_Student()
[Explore and use the string.h functions to perform the string operations, like string
copy, string compare etc]