ݺߣ

ݺߣShare a Scribd company logo
#include<iostream>
using namespace std;
class Student
{
private:
double rollno;
public:
void setroll(int a);
int showroll();
Student():rollno(0)
{
}
Student(int a):rollno(a)
{
}
void search_roll();
};
void Student::setroll(int a)
{
rollno=a;
}
int Student::showroll()
{
return rollno;
}
void Student:: search_roll()
{
int r;
Student d;
cout<<"Enter Roll No :";
cin>>r;
d.setroll(r);
switch(r)
{
case 1:
{
cout<<"==========================================n";
cout<<"nRoll number of student :1 ";
cout<<"nName of student :Mobeenn";
cout<<"nMarks in Physics :60/100n
";
cout<<"nMarks in Chemistry :70/100n ";
cout<<"nMarks in Maths : 80/100n";
cout<<"nMarks in English :85/100n ";
cout<<"nMarks in Computer Science :65/100n";
cout<<"nPercentage of student is : 72%n";
cout<<"nGrade of student is :Bn";
cout<<"==========================================n";
break;
}
case 2:
{
cout<<"==========================================n";
cout<<"nRoll number of student :2 ";
cout<<"nName of student :Kashifn";
cout<<"nMarks in Physics :70/100n ";
cout<<"nMarks in Chemistry :80/100n ";
cout<<"nMarks in Maths :90/100n";
cout<<"nMarks in English :76/100n ";
cout<<"nMarks in Computer Science :57/100n";
cout<<"nPercentage of student is :74%n";
cout<<"nGrade of student is :Bn";
cout<<"==========================================n";
break;
}
case 3:
{
cout<<"==========================================n";
cout<<"nRoll number of student :3 ";
cout<<"nName of student :Qamarn";
cout<<"nMarks in Physics :75/100n
";
cout<<"nMarks in Chemistry :85/100n ";
cout<<"nMarks in Maths :72/100n";
cout<<"nMarks in English :76/100n ";
cout<<"nMarks in Computer Science :87/100n";
cout<<"nPercentage of student is : 79%n";
cout<<"nGrade of student is :Bn";
cout<<"==========================================n";
break;
}
case 4:
{
cout<<"==========================================n";
cout<<"nRoll number of student :4 ";
cout<<"nName of student :Alin";
cout<<"nMarks in Physics :80/100n ";
cout<<"nMarks in Chemistry :52/100n ";
cout<<"nMarks in Maths :48/100n";
cout<<"nMarks in English :35/100n ";
cout<<"nMarks in Computer Science :78/100n";
cout<<"nPercentage of student is : 59%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 5:
{
cout<<"==========================================n";
cout<<"nRoll number of student :5 ";
cout<<"nName of student :Husnain Alin";
cout<<"nMarks in Physics :70/100n ";
cout<<"nMarks in Chemistry :52/100n ";
cout<<"nMarks in Maths :58/100n";
cout<<"nMarks in English :75/100n ";
cout<<"nMarks in Computer Science :78/100n";
cout<<"nPercentage of student is :66%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 6:
{
cout<<"==========================================n";
cout<<"nRoll number of student :6 ";
cout<<"nName of student :Adnan alin";
cout<<"nMarks in Physics :50/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 62%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 7:
{
cout<<"==========================================n";
cout<<"nRoll number of student :7 ";
cout<<"nName of student :Mohsin Alin";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :88/100n ";
cout<<"nMarks in Computer Science :79/100n";
cout<<"nPercentage of student is :71%n";
cout<<"nGrade of student is :Bn";
cout<<"==========================================n";
break;
}
case 8:
{
cout<<"==========================================n";
cout<<"nRoll number of student :8 ";
cout<<"nName of student :Hamza Alin";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 9:
{
cout<<"==========================================n";
cout<<"nRoll number of student :9 ";
cout<<"nName of student :Hamza Farooqn";
cout<<"nMarks in Physics :56/100n ";
cout<<"nMarks in Chemistry :75/100n ";
cout<<"nMarks in Maths :85/100n";
cout<<"nMarks in English :56/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 69%n";
cout<<"nGrade of student is :Bn";
cout<<"==========================================n";
break;
}
case 10:
{
cout<<"==========================================n";
cout<<"nRoll number of student :9 ";
cout<<"nName of student :Hassan Alin";
cout<<"nMarks in Physics :59/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :85/100n ";
cout<<"nMarks in Computer Science :35/100n";
cout<<"nPercentage of student is : 60%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 20:
{
cout<<"==========================================n";
cout<<"nRoll number of student :20 ";
cout<<"nName of student :Junaid Alin";
cout<<"nMarks in Physics :56/100n ";
cout<<"nMarks in Chemistry :75/100n ";
cout<<"nMarks in Maths :35/100n";
cout<<"nMarks in English :95/100n ";
cout<<"nMarks in Computer Science :85/100n";
cout<<"nPercentage of student is : 69%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 11:
{
cout<<"==========================================n";
cout<<"nRoll number of student :11 ";
cout<<"nName of student :Salman Ahmad Alin";
cout<<"nMarks in Physics :45/100n ";
cout<<"nMarks in Chemistry :35/100n ";
cout<<"nMarks in Maths :71/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :45/100n";
cout<<"nPercentage of student is : 52%n";
cout<<"nGrade of student is :Dn";
cout<<"==========================================n";
break;
}
case 12:
{
cout<<"==========================================n";
cout<<"nRoll number of student :12 ";
cout<<"nName of student :Abdulwahab n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 13:
{
cout<<"==========================================n";
cout<<"nRoll number of student :13 ";
cout<<"nName of student :Aslam Ali n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 14:
{
cout<<"==========================================n";
cout<<"nRoll number of student :14 ";
cout<<"nName of student :Mudassir Ali n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 15:
{
cout<<"==========================================n";
cout<<"nRoll number of student :15 ";
cout<<"nName of student :Anas Rafique n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 16:
{
cout<<"==========================================n";
cout<<"nRoll number of student :16 ";
cout<<"nName of student :Zain Ali n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 19:
{
cout<<"==========================================n";
cout<<"nRoll number of student :19 ";
cout<<"nName of student :Sohail Ahmad n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 17:
{
cout<<"==========================================n";
cout<<"nRoll number of student :17 ";
cout<<"nName of student :Dawood Hameed n";
cout<<"nMarks in Physics :75/100n ";
cout<<"nMarks in Chemistry :35/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :15/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 18:
{
cout<<"==========================================n";
cout<<"nRoll number of student :19 ";
cout<<"nName of student :Ahmad Ali n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
default:
{
cout<<"Invalid Roll number Try again";
}
}
}
int main()
{
Student a;
a.search_roll();
return 0;
}
case 17:
{
cout<<"==========================================n";
cout<<"nRoll number of student :17 ";
cout<<"nName of student :Dawood Hameed n";
cout<<"nMarks in Physics :75/100n ";
cout<<"nMarks in Chemistry :35/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :15/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
case 18:
{
cout<<"==========================================n";
cout<<"nRoll number of student :19 ";
cout<<"nName of student :Ahmad Ali n";
cout<<"nMarks in Physics :66/100n ";
cout<<"nMarks in Chemistry :45/100n ";
cout<<"nMarks in Maths :75/100n";
cout<<"nMarks in English :65/100n ";
cout<<"nMarks in Computer Science :75/100n";
cout<<"nPercentage of student is : 65%n";
cout<<"nGrade of student is :Cn";
cout<<"==========================================n";
break;
}
default:
{
cout<<"Invalid Roll number Try again";
}
}
}
int main()
{
Student a;
a.search_roll();
return 0;
}
Ad

Recommended

CCE management system
CCE management system
Trish004
Hevlel baga hural_2015.06.15
Hevlel baga hural_2015.06.15
munhzaya sarangerel
Hevlel baga hural_2015.06.15-2-last
Hevlel baga hural_2015.06.15-2-last
munhzaya sarangerel
Biblithology-2
Biblithology-2
Thomas Usinger
Population зайлгшүй судалгаа
Population зайлгшүй судалгаа
munhzaya sarangerel
هيكلة أكاديمية درعة تافلالت
هيكلة أكاديمية درعة تافلالت
Ali Aboulkassim
THRYPLASQUBALUMINOMECHOLOGY-3
THRYPLASQUBALUMINOMECHOLOGY-3
Thomas Usinger
Unidad ii ejercicios. trabajo de criyimar
Unidad ii ejercicios. trabajo de criyimar
Fernando Perez
C++ program using class
C++ program using class
Swarup Boro
~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]
Sunny Rekhi
Investigatory Project for Computer Science
Investigatory Project for Computer Science
Sonali Sinha
computer science c++ project class xii
computer science c++ project class xii
Yogesh Saini
#include -string- #include -string- #include -vector- #include -iostre (1).pdf
#include -string- #include -string- #include -vector- #include -iostre (1).pdf
ashiyanabakersandcon
Header #include -string- #include -vector- #include -iostream- using.pdf
Header #include -string- #include -vector- #include -iostream- using.pdf
gaurav444u
Below is my code for C++- I keep getting an error 43 5 C--Progr.pdf
Below is my code for C++- I keep getting an error 43 5 C--Progr.pdf
anilbhagat17
Sumit pandit
Sumit pandit
coolpandit
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEm
home
oops practical file.pptx IT IS A PRACTICAL FILE
oops practical file.pptx IT IS A PRACTICAL FILE
ritikghw
Program 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdf
ezhilvizhiyan
Library management system code
Library management system code
Naman Maheshwari
Student teacher database management
Student teacher database management
dharmenderlodhi021
ONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEM
Rohit malav
computer science project
computer science project
Roshan Bastia
DEBUG3 This program creates student objects and overl.pdf
DEBUG3 This program creates student objects and overl.pdf
motilajain
#include stdafx.h#include iostream#include string#incl.pdf
#include stdafx.h#include iostream#include string#incl.pdf
anonamobilesp
Pads lab manual final
Pads lab manual final
AhalyaR
Cs pritical file
Cs pritical file
Mitul Patel
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
nishadvtky
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
Streamlining CI/CD with FME Flow: A Practical Guide
Streamlining CI/CD with FME Flow: A Practical Guide
Safe Software

More Related Content

Similar to Student search by roll no project in c++ (20)

C++ program using class
C++ program using class
Swarup Boro
~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]
Sunny Rekhi
Investigatory Project for Computer Science
Investigatory Project for Computer Science
Sonali Sinha
computer science c++ project class xii
computer science c++ project class xii
Yogesh Saini
#include -string- #include -string- #include -vector- #include -iostre (1).pdf
#include -string- #include -string- #include -vector- #include -iostre (1).pdf
ashiyanabakersandcon
Header #include -string- #include -vector- #include -iostream- using.pdf
Header #include -string- #include -vector- #include -iostream- using.pdf
gaurav444u
Below is my code for C++- I keep getting an error 43 5 C--Progr.pdf
Below is my code for C++- I keep getting an error 43 5 C--Progr.pdf
anilbhagat17
Sumit pandit
Sumit pandit
coolpandit
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEm
home
oops practical file.pptx IT IS A PRACTICAL FILE
oops practical file.pptx IT IS A PRACTICAL FILE
ritikghw
Program 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdf
ezhilvizhiyan
Library management system code
Library management system code
Naman Maheshwari
Student teacher database management
Student teacher database management
dharmenderlodhi021
ONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEM
Rohit malav
computer science project
computer science project
Roshan Bastia
DEBUG3 This program creates student objects and overl.pdf
DEBUG3 This program creates student objects and overl.pdf
motilajain
#include stdafx.h#include iostream#include string#incl.pdf
#include stdafx.h#include iostream#include string#incl.pdf
anonamobilesp
Pads lab manual final
Pads lab manual final
AhalyaR
Cs pritical file
Cs pritical file
Mitul Patel
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
nishadvtky
C++ program using class
C++ program using class
Swarup Boro
~ Project-student report-card.cpp[1]
~ Project-student report-card.cpp[1]
Sunny Rekhi
Investigatory Project for Computer Science
Investigatory Project for Computer Science
Sonali Sinha
computer science c++ project class xii
computer science c++ project class xii
Yogesh Saini
#include -string- #include -string- #include -vector- #include -iostre (1).pdf
#include -string- #include -string- #include -vector- #include -iostre (1).pdf
ashiyanabakersandcon
Header #include -string- #include -vector- #include -iostream- using.pdf
Header #include -string- #include -vector- #include -iostream- using.pdf
gaurav444u
Below is my code for C++- I keep getting an error 43 5 C--Progr.pdf
Below is my code for C++- I keep getting an error 43 5 C--Progr.pdf
anilbhagat17
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEm
home
oops practical file.pptx IT IS A PRACTICAL FILE
oops practical file.pptx IT IS A PRACTICAL FILE
ritikghw
Program 1 (Practicing an example of function using call by referenc.pdf
Program 1 (Practicing an example of function using call by referenc.pdf
ezhilvizhiyan
ONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEM
Rohit malav
DEBUG3 This program creates student objects and overl.pdf
DEBUG3 This program creates student objects and overl.pdf
motilajain
#include stdafx.h#include iostream#include string#incl.pdf
#include stdafx.h#include iostream#include string#incl.pdf
anonamobilesp
Pads lab manual final
Pads lab manual final
AhalyaR
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
nishadvtky

Recently uploaded (20)

Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
Streamlining CI/CD with FME Flow: A Practical Guide
Streamlining CI/CD with FME Flow: A Practical Guide
Safe Software
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
Simplify Insurance Regulations with Compliance Management Software
Simplify Insurance Regulations with Compliance Management Software
Insurance Tech Services
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
Best Practice for LLM Serving in the Cloud
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
Canva Pro Crack Free Download 2025-FREE LATEST
Canva Pro Crack Free Download 2025-FREE LATEST
grete1122g
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
Streamlining CI/CD with FME Flow: A Practical Guide
Streamlining CI/CD with FME Flow: A Practical Guide
Safe Software
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
Simplify Task, Team, and Project Management with Orangescrum Work
Simplify Task, Team, and Project Management with Orangescrum Work
Orangescrum
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
Simplify Insurance Regulations with Compliance Management Software
Simplify Insurance Regulations with Compliance Management Software
Insurance Tech Services
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
Best Practice for LLM Serving in the Cloud
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
Canva Pro Crack Free Download 2025-FREE LATEST
Canva Pro Crack Free Download 2025-FREE LATEST
grete1122g
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
Ad

Student search by roll no project in c++

  • 1. #include<iostream> using namespace std; class Student { private: double rollno; public: void setroll(int a); int showroll(); Student():rollno(0) { } Student(int a):rollno(a) { } void search_roll(); }; void Student::setroll(int a) { rollno=a; } int Student::showroll() { return rollno; } void Student:: search_roll() { int r; Student d; cout<<"Enter Roll No :"; cin>>r; d.setroll(r); switch(r) { case 1: { cout<<"==========================================n"; cout<<"nRoll number of student :1 "; cout<<"nName of student :Mobeenn"; cout<<"nMarks in Physics :60/100n "; cout<<"nMarks in Chemistry :70/100n "; cout<<"nMarks in Maths : 80/100n"; cout<<"nMarks in English :85/100n "; cout<<"nMarks in Computer Science :65/100n"; cout<<"nPercentage of student is : 72%n"; cout<<"nGrade of student is :Bn"; cout<<"==========================================n"; break; } case 2: { cout<<"==========================================n";
  • 2. cout<<"nRoll number of student :2 "; cout<<"nName of student :Kashifn"; cout<<"nMarks in Physics :70/100n "; cout<<"nMarks in Chemistry :80/100n "; cout<<"nMarks in Maths :90/100n"; cout<<"nMarks in English :76/100n "; cout<<"nMarks in Computer Science :57/100n"; cout<<"nPercentage of student is :74%n"; cout<<"nGrade of student is :Bn"; cout<<"==========================================n"; break; } case 3: { cout<<"==========================================n"; cout<<"nRoll number of student :3 "; cout<<"nName of student :Qamarn"; cout<<"nMarks in Physics :75/100n "; cout<<"nMarks in Chemistry :85/100n "; cout<<"nMarks in Maths :72/100n"; cout<<"nMarks in English :76/100n "; cout<<"nMarks in Computer Science :87/100n"; cout<<"nPercentage of student is : 79%n"; cout<<"nGrade of student is :Bn"; cout<<"==========================================n"; break; } case 4: { cout<<"==========================================n"; cout<<"nRoll number of student :4 "; cout<<"nName of student :Alin"; cout<<"nMarks in Physics :80/100n "; cout<<"nMarks in Chemistry :52/100n "; cout<<"nMarks in Maths :48/100n"; cout<<"nMarks in English :35/100n "; cout<<"nMarks in Computer Science :78/100n"; cout<<"nPercentage of student is : 59%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 5: { cout<<"==========================================n"; cout<<"nRoll number of student :5 "; cout<<"nName of student :Husnain Alin"; cout<<"nMarks in Physics :70/100n "; cout<<"nMarks in Chemistry :52/100n "; cout<<"nMarks in Maths :58/100n"; cout<<"nMarks in English :75/100n "; cout<<"nMarks in Computer Science :78/100n"; cout<<"nPercentage of student is :66%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 6: { cout<<"==========================================n";
  • 3. cout<<"nRoll number of student :6 "; cout<<"nName of student :Adnan alin"; cout<<"nMarks in Physics :50/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 62%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 7: { cout<<"==========================================n"; cout<<"nRoll number of student :7 "; cout<<"nName of student :Mohsin Alin"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :88/100n "; cout<<"nMarks in Computer Science :79/100n"; cout<<"nPercentage of student is :71%n"; cout<<"nGrade of student is :Bn"; cout<<"==========================================n"; break; } case 8: { cout<<"==========================================n"; cout<<"nRoll number of student :8 "; cout<<"nName of student :Hamza Alin"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 9: { cout<<"==========================================n"; cout<<"nRoll number of student :9 "; cout<<"nName of student :Hamza Farooqn"; cout<<"nMarks in Physics :56/100n "; cout<<"nMarks in Chemistry :75/100n "; cout<<"nMarks in Maths :85/100n"; cout<<"nMarks in English :56/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 69%n"; cout<<"nGrade of student is :Bn"; cout<<"==========================================n"; break; } case 10: { cout<<"==========================================n"; cout<<"nRoll number of student :9 "; cout<<"nName of student :Hassan Alin"; cout<<"nMarks in Physics :59/100n "; cout<<"nMarks in Chemistry :45/100n ";
  • 4. cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :85/100n "; cout<<"nMarks in Computer Science :35/100n"; cout<<"nPercentage of student is : 60%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 20: { cout<<"==========================================n"; cout<<"nRoll number of student :20 "; cout<<"nName of student :Junaid Alin"; cout<<"nMarks in Physics :56/100n "; cout<<"nMarks in Chemistry :75/100n "; cout<<"nMarks in Maths :35/100n"; cout<<"nMarks in English :95/100n "; cout<<"nMarks in Computer Science :85/100n"; cout<<"nPercentage of student is : 69%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 11: { cout<<"==========================================n"; cout<<"nRoll number of student :11 "; cout<<"nName of student :Salman Ahmad Alin"; cout<<"nMarks in Physics :45/100n "; cout<<"nMarks in Chemistry :35/100n "; cout<<"nMarks in Maths :71/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :45/100n"; cout<<"nPercentage of student is : 52%n"; cout<<"nGrade of student is :Dn"; cout<<"==========================================n"; break; } case 12: { cout<<"==========================================n"; cout<<"nRoll number of student :12 "; cout<<"nName of student :Abdulwahab n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 13: { cout<<"==========================================n"; cout<<"nRoll number of student :13 "; cout<<"nName of student :Aslam Ali n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n";
  • 5. cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 14: { cout<<"==========================================n"; cout<<"nRoll number of student :14 "; cout<<"nName of student :Mudassir Ali n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 15: { cout<<"==========================================n"; cout<<"nRoll number of student :15 "; cout<<"nName of student :Anas Rafique n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 16: { cout<<"==========================================n"; cout<<"nRoll number of student :16 "; cout<<"nName of student :Zain Ali n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 19: { cout<<"==========================================n"; cout<<"nRoll number of student :19 "; cout<<"nName of student :Sohail Ahmad n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; }
  • 6. case 17: { cout<<"==========================================n"; cout<<"nRoll number of student :17 "; cout<<"nName of student :Dawood Hameed n"; cout<<"nMarks in Physics :75/100n "; cout<<"nMarks in Chemistry :35/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :15/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 18: { cout<<"==========================================n"; cout<<"nRoll number of student :19 "; cout<<"nName of student :Ahmad Ali n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } default: { cout<<"Invalid Roll number Try again"; } } } int main() { Student a; a.search_roll(); return 0; }
  • 7. case 17: { cout<<"==========================================n"; cout<<"nRoll number of student :17 "; cout<<"nName of student :Dawood Hameed n"; cout<<"nMarks in Physics :75/100n "; cout<<"nMarks in Chemistry :35/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :15/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } case 18: { cout<<"==========================================n"; cout<<"nRoll number of student :19 "; cout<<"nName of student :Ahmad Ali n"; cout<<"nMarks in Physics :66/100n "; cout<<"nMarks in Chemistry :45/100n "; cout<<"nMarks in Maths :75/100n"; cout<<"nMarks in English :65/100n "; cout<<"nMarks in Computer Science :75/100n"; cout<<"nPercentage of student is : 65%n"; cout<<"nGrade of student is :Cn"; cout<<"==========================================n"; break; } default: { cout<<"Invalid Roll number Try again"; } } } int main() { Student a; a.search_roll(); return 0; }