/* THIS CODE HAS BEEN TESTED AND IS FULLY OPERATIONAL. Problem Statement: Write a C++ program create a calculator for an arithmetic operator (+, -, *, /). The program should take two operands from user and performs the operation on those two operands depending upon the operator entered by user. Use a switch statement to select the operation. Finally, display the result. Code from Object Oriented Programming (SPPU - Second Year - Computer Engineering - Content) repository on KSKA Git: https://git.kska.io/sppu-se-comp-content/ObjectOrientedProgramming */ // BEGINNING OF CODE #include #include using namespace std; #define max 100; class student { string lic, dob, bg; public: student(); student(student &); ~student() { cout<<"\nDESTRUCTOR IS CALLED!!!!!"<name=obj.name; this->cls=obj.cls; this->address=obj.address; this->div=obj.div; this->roll_no=obj.roll_no; this->c_number=obj.c_number; this->tel=obj.tel; } student::student(student &obj) { lic=obj.lic; dob=obj.dob; bg=obj.bg; } void info::create(student &obj) { cout<<"\nENTER NAME OF THE STUDENT:\t "; cin>>name; cout<<"\nENTER CLASS OF THE STUDENT:\t "; cin>>cls; cout<<"\nENTER ADDRESS OF THE STUDENT :\t "; cin>>address; cout<<"\nENTER DATE OF BIRTH(dd/mm/yyyy) :\t "; cin>>obj.dob; cout<<"\nENTER DIVISION OF STUDENT:\t "; cin>>div; cout<<"\nENTER ROLL NUMBER OF STUDENT :\t "; cin>>roll_no; cout<<"\nENTER BLOOD GROUP OF STUDENT :\t "; cin>>obj.bg; cout<<"\nENTER DRIVERS LICENCE NUMBER :\t "; cin>>obj.lic; cout<<"\nENTER PHONE NUMBER (CONTACT) :\t "; cin>>c_number; long no; int total = 0, flag = 0; while (flag != 1) { cout << "ENTER TELEPHONE NUMBER :\t "; cin >> *tel; no = *tel; while (no > 0) { total++; no = no / 10; } cout << "Total digits in telNo :\t " << total << " (required: 10)" << endl; try { if (total == 10) { cout << " Correct number....." << endl; flag = 1; } else { throw(*tel); } } catch (long n) { cout << " Incorrect number..... " << n << endl; total=0; } } } void info::display(student &obj) { cout<<" \n *********************** " <>n; cout<<"\n***********************"<>ch; switch(ch) { case 1: { for(int i=0;i>ans; }while(ans=='y') ; return 0; } // END OF CODE