You are required to propose FOUR functions to develop a complete student record management system. The function are insert, delete, search, update.  In addition, you need to use sorted array to complete the system development.   Write a program by extending the code from the lab. Think and implement 4 more functions in the program (compulsory function is sorting and searching) Your must build on top of the following code.  //FileName: Student.cpp //This program illustrates attributes of class Student using simple data structure #include class Student { private: struct Data { char Name[25]; char Course[30]; int Result; } stdata; public: void SetData(); void GetData(); };//class Student void Student::SetData() { cout <<”Enter student name:”; cin>> stdata.Name; cout<< “Enter student course: “; cin>> stdata.Course; cout<< “Enter student result:”; cin>> stdata.Result; };//method SetData void Student::GetData()   { cout<< “\n Student name:” < #include “Student.cpp” int main() { const int size =5; int i; //create a new instance of student in array Student studentinmyclass[size]; for(int=0; i

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

You are required to propose FOUR functions to develop a complete student
record management system. The function are insert, delete, search, update. 

In addition, you need to use sorted array to complete the system development.  

  • Write a program by extending the code from the lab.
  • Think and implement 4 more functions in the program (compulsory function is sorting and
    searching)
  • Your must build on top of the following code. 

//FileName: Student.cpp
//This program illustrates attributes of class Student using simple data structure

#include <iostream.h>
class Student {
private:
struct Data {
char Name[25];
char Course[30];
int Result;
} stdata;
public:
void SetData();
void GetData();
};//class Student

void Student::SetData()
{
cout <<”Enter student name:”;
cin>> stdata.Name;
cout<< “Enter student course: “;
cin>> stdata.Course;
cout<< “Enter student result:”;
cin>> stdata.Result;
};//method SetData

void Student::GetData()

 

{
cout<< “\n Student name:” <<stdata.Name;
cout<< “\n”;
cout<< “\nStudent course:” << stdata.Course;
cout<<”\n”;
cout<<”\nStudent result:” << stdata.Result;
cout<<”\n”;
};// method GetData


//Filename: StudentD.cpp
//This program serves as a driver(main)for class Student with simple data structure. It instantiates
the class Student and call methods from class Student

#include “Student.cpp”

int main()
{
//Create a new instance of student
Student student1;

//invoke methods
student1.SetData();
student1.getData();

return 0;
}; 

/FileName: StudentL.cpp
//The is program shows for loop example. It instantiates the class Student using struct for its data
and call methods from class Student
#include<iostream.h>
#include “Student.cpp”

int main() {
const int size =5;
int i;
//create a new instance of student in array
Student studentinmyclass[size];

for(int=0; i<size; i++) {
//invoke method
studentinmyclass[i].SetData();
};

cout<< “\nThe students in my class are “<< “\n”;

 

for(I =0;i<size; i++){
studentinmyclass[i]GetData();
};

return 0;
}

 

 

 

1
2
3
4
Student
Student
Student
Student
Student
Angelina
Marina
Cristina
David
Lee
Programming
Mathematics
Calculus
Algebra
Multimedia
76
89
67
84
83
Transcribed Image Text:1 2 3 4 Student Student Student Student Student Angelina Marina Cristina David Lee Programming Mathematics Calculus Algebra Multimedia 76 89 67 84 83
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Header Files
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education