#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
// -------------------------------------------
// A. Design a roll call list, arrange list of students according to roll numbers in ascending order (using Bubble Sort)
// B. Arrange list of students according to name. (Use Insertion sort)
// C. Arrange list of students to find out first ten toppers from a class. (Use Quick sort)
// D. Search students according to SGPA. If more than one student having same SGPA, then print list of all students having same SGPA.
// E. Search a particular student according to name using binary search without recursion.
// -------------------------------------------
struct Student{
int Rollno[3];
string Fullname[3];
float cgpa[3];
}stu1;
void inputInformation(Student db){
for(int i=0;i<3;i++){
cout << "Enter Roll no. of the student: ";
cin >> db.Rollno[i];
cout << "\nEnter Name of the student: ";
cin >> db.Fullname[i];
cout << "\nEnter the CGPA of the student: ";
cin >> db.cgpa[i];
}
}
void displayInput(Student db){
cout << "\n--------------------------------------------------------";
for(int i=0;i<3;i++){
cout << "\nRoll. no of the student: " << db.Rollno[i];
cout << "\nName no of the student: " << db.Fullname[i];
cout << "\nCGPA no of the student: " << db.cgpa[i];
cout << "\n--------------------------------------------------------";
}
}
void bubbleSort(){
}
int main(){
inputInformation(stu1);
displayInput(stu1);
return 0;
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}