尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Page 1
Govt. Post Graduate College
Samanabad
Assignment # 01
Object Oriented Programming
Submitted To: Mam Iqra
Submitted By: Zohaib Arif
Roll no.: 6823
Semester: ῙῙ
Department of Information & Technology
(evening)
Page 2
Contents .
Program…………………………………………………………………………………………..Page no.
I. Display of “Word” for fivetimes……………………………………………………………............ 3
II. Display of five numbers and their sum……………………………………….……………………. 3
III. Display of counting…………………………………………………………………………….………….... 4
IV. Display of numbers and their squares…………………………………………………………...… 4
V. Inputting of number and display its table………………………………………..………….…… 5
VI. Distinguishing of even or odd numbers…………………………………………….………….….. 5
VII. Display of digits in block pattern…………………………………….………………………….….... 6
VIII. Display of symbolas a block..………………………………………………………………………….. 6
IX. Display of digits in descending order as triangle………………………………………………. 7
X. Display of digits in ascending order as triangle………………….…………………………….. 7
XI. Display of moredigits by changing firstdigit every time………………………………….. 8
XII. Initializing and display of digits fromarray…………………………………………………....... 8
XIII. Taking of number fromarray and displaying………………………………………………….... 9
XIV. Inputting storing in an array and displaying of numbers……………………………..…… 9
XV. Inputting the numbers and then store them in an array and display the sumand
averageof these numbers…………………..……………………………………………………..….. 10
XVI. Inputday and month and then calculates total number of days………………....…. 10
XVII. Inputvalue and find value using linear search……………………………………………….. 11
XVIII. Inputvalue and find value using binary search………………………………………………. 11
XIX. Inputfive values and sorts it using bubble sort…………………………………………….… 12
XX. Inputfive values and sorts it using selection sort…………………………………………... 12
XXI. Displays a massageusing function…………………………………………………….…………… 13
XXII. Inputnumbers in main function, passes thesenumbers to function and displays
maximum number………………………………………………………………………………….……… 14
XXIII. Inputa number in main function and passes and passes the number and function
display table……………………………………………………………………………………………….... 15
XXIV. Inputs a number and displays its processor and successor numbers using
function………………………………………………….……………………………………………………. 15
XXV. Create class with one integer data member and two member function……… 16
XXVI. Create class with three data member and three member function……………. 16
XXVII. Create two objects of class and input value for these objects and it displays detail of
costly book………………………………………………………………………………………………….. 17
Page 3
XXVIII. Create class has num& ch data members and one constructor with on parameter and
other with two parameter…………………………………………………………………………… 18
XXIX. Create class that has constructer and destructor………………………………………… 19
XXX. Create member function outside the class……………………………………………………20
XXXI. Create member function within the class…………………………………………………… 21
Page 4
Program # 01 : To Displayof “Word” for five times
Program # 02: To Displayof five numbers and their sum
Page 5
Program # 03: To Displayof counting
Program # 04: To Displayof numbers and their squares
Page 6
Program # 05: To Input a number and displayits table
Program # 06: To Distinguish of even or odd numbers
Page 7
Program # 07: To Displayof digitsin block pattern
Program # 08: To Displayof symbol as a block
Page 8
Program # 09: To Displaythe digits in descending order as triangle
Program # 10: To Displaythe digits in ascending order as triangle
Page 9
Program # 11: To Displaymore digits and changing of first digit every
time
Program # 12: To Initializingand display of digits from array
Page 10
Program # 13: To Take a number from an array and display
Program # 14: To Input a number and store it in an array and display
by using loop
Page 11
Program # 15: To Input the numbers and then store them in an array
and display the sum and average of these numbers
Program # 16: To Input day and month and then calculates total
number of days
Page 12
Program # 17: To Input value and find value using linear search
Program # 18: Input value and find value using binary search
Page 13
Program # 19:To input five values and sorts it using bubble sort
Page 14
Program # 20: To input five values and sorts it using selection sort
Page 15
Program # 21: To displays a massage using function
Program # 22: To input numbers in main function, passes these
numbers to function and displays maximumnumber
Page 16
Program # 23: To input a number in main function and passes and
passes the number and function display table
Program # 24: To inputs number and displays its processorand
successor number using function
Page 17
Program # 25:To declares a class with one integer data member and
two member function
Page 18
Program # 26:To make a class with three data member and three
member function
Page 19
Program # 27: To create two objects of class and input value for
these objects and it displays detail of costly book
Page 20
Program # 28:To make class has num & ch data members and one
constructor with on parameter and other with two parameter
Page 21
Program # 29:To create class that has constructer and destructor
Page 22
Program # 30:To create member function outside the class
Page 23
Program # 31:To create member function within the class
Page 24

More Related Content

Similar to programming

gp4
gp4gp4
Thesis-aligned-sc13m055
Thesis-aligned-sc13m055Thesis-aligned-sc13m055
Thesis-aligned-sc13m055
Mohan Kashyap
 
Introduction to Computer Under Process.pdf
Introduction to Computer Under Process.pdfIntroduction to Computer Under Process.pdf
Introduction to Computer Under Process.pdf
Mohamoud Saed Mohamed
 
Hostel management system srs
Hostel management system srsHostel management system srs
Hostel management system srs
hira akram
 
Thesis_Report
Thesis_ReportThesis_Report
Introduction to BIRT
Introduction to BIRTIntroduction to BIRT
Introduction to BIRT
Raghavan Mohan
 
C Programming
C ProgrammingC Programming
C Programming
Prince Kumar
 
Tokyo country
Tokyo countryTokyo country
Tokyo country
AsraHafeez
 
(Manual) auto cad 2000 visual lisp tutorial (autocad)
(Manual) auto cad 2000 visual lisp tutorial (autocad)(Manual) auto cad 2000 visual lisp tutorial (autocad)
(Manual) auto cad 2000 visual lisp tutorial (autocad)
Ketut Swandana
 
Dynamics AX/ X++
Dynamics AX/ X++Dynamics AX/ X++
Dynamics AX/ X++
Reham Maher El-Safarini
 
Hung_thesis
Hung_thesisHung_thesis
Hung_thesis
hungtruongquoc
 
Vic broquard c++ for computer science and engineering 2006
Vic broquard c++ for computer science and engineering 2006Vic broquard c++ for computer science and engineering 2006
Vic broquard c++ for computer science and engineering 2006
Souvik Maity
 
Autocad map 3d tutorials
Autocad map 3d tutorialsAutocad map 3d tutorials
Autocad map 3d tutorials
Javier Morales
 
The Total Book Developing Solutions With EPiServer 4
The Total Book Developing Solutions With EPiServer 4The Total Book Developing Solutions With EPiServer 4
The Total Book Developing Solutions With EPiServer 4
Martin Edenström MKSE.com
 
Getstart graphic
Getstart graphicGetstart graphic
Getstart graphic
alldesign
 
FINAL_Tenorio_masters_thesis
FINAL_Tenorio_masters_thesisFINAL_Tenorio_masters_thesis
FINAL_Tenorio_masters_thesis
Lisa Tenorio
 
Dt
DtDt
DCI Survey 2014
DCI Survey 2014DCI Survey 2014
DCI Survey 2014
David A. Bell
 
Example for SDS document in Software engineering
Example for SDS document in Software engineeringExample for SDS document in Software engineering
Example for SDS document in Software engineering
Ravi Yasas
 
Vivarana fyp report
Vivarana fyp reportVivarana fyp report
Vivarana fyp report
Tharindu Ranasinghe
 

Similar to programming (20)

gp4
gp4gp4
gp4
 
Thesis-aligned-sc13m055
Thesis-aligned-sc13m055Thesis-aligned-sc13m055
Thesis-aligned-sc13m055
 
Introduction to Computer Under Process.pdf
Introduction to Computer Under Process.pdfIntroduction to Computer Under Process.pdf
Introduction to Computer Under Process.pdf
 
Hostel management system srs
Hostel management system srsHostel management system srs
Hostel management system srs
 
Thesis_Report
Thesis_ReportThesis_Report
Thesis_Report
 
Introduction to BIRT
Introduction to BIRTIntroduction to BIRT
Introduction to BIRT
 
C Programming
C ProgrammingC Programming
C Programming
 
Tokyo country
Tokyo countryTokyo country
Tokyo country
 
(Manual) auto cad 2000 visual lisp tutorial (autocad)
(Manual) auto cad 2000 visual lisp tutorial (autocad)(Manual) auto cad 2000 visual lisp tutorial (autocad)
(Manual) auto cad 2000 visual lisp tutorial (autocad)
 
Dynamics AX/ X++
Dynamics AX/ X++Dynamics AX/ X++
Dynamics AX/ X++
 
Hung_thesis
Hung_thesisHung_thesis
Hung_thesis
 
Vic broquard c++ for computer science and engineering 2006
Vic broquard c++ for computer science and engineering 2006Vic broquard c++ for computer science and engineering 2006
Vic broquard c++ for computer science and engineering 2006
 
Autocad map 3d tutorials
Autocad map 3d tutorialsAutocad map 3d tutorials
Autocad map 3d tutorials
 
The Total Book Developing Solutions With EPiServer 4
The Total Book Developing Solutions With EPiServer 4The Total Book Developing Solutions With EPiServer 4
The Total Book Developing Solutions With EPiServer 4
 
Getstart graphic
Getstart graphicGetstart graphic
Getstart graphic
 
FINAL_Tenorio_masters_thesis
FINAL_Tenorio_masters_thesisFINAL_Tenorio_masters_thesis
FINAL_Tenorio_masters_thesis
 
Dt
DtDt
Dt
 
DCI Survey 2014
DCI Survey 2014DCI Survey 2014
DCI Survey 2014
 
Example for SDS document in Software engineering
Example for SDS document in Software engineeringExample for SDS document in Software engineering
Example for SDS document in Software engineering
 
Vivarana fyp report
Vivarana fyp reportVivarana fyp report
Vivarana fyp report
 

Recently uploaded

Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...
Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...
Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...
Anita pandey
 
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
sapnasaifi408
 
Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...
Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...
Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...
anshsharma8761
 
SAP ECC & S4 HANA PPT COMPARISON MM.pptx
SAP ECC & S4 HANA PPT COMPARISON MM.pptxSAP ECC & S4 HANA PPT COMPARISON MM.pptx
SAP ECC & S4 HANA PPT COMPARISON MM.pptx
aneeshmanikantan2341
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
michniczscribd
 
TheFutureIsDynamic-BoxLang-CFCamp2024.pdf
TheFutureIsDynamic-BoxLang-CFCamp2024.pdfTheFutureIsDynamic-BoxLang-CFCamp2024.pdf
TheFutureIsDynamic-BoxLang-CFCamp2024.pdf
Ortus Solutions, Corp
 
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical OperationsEnsuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
OnePlan Solutions
 
AI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdfAI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdf
kalichargn70th171
 
Building API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructureBuilding API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructure
confluent
 
Trailhead Talks_ Journey of an All-Star Ranger .pptx
Trailhead Talks_ Journey of an All-Star Ranger .pptxTrailhead Talks_ Journey of an All-Star Ranger .pptx
Trailhead Talks_ Journey of an All-Star Ranger .pptx
ImtiazBinMohiuddin
 
Hands-on with Apache Druid: Installation & Data Ingestion Steps
Hands-on with Apache Druid: Installation & Data Ingestion StepsHands-on with Apache Druid: Installation & Data Ingestion Steps
Hands-on with Apache Druid: Installation & Data Ingestion Steps
servicesNitor
 
Call Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service Available
Call Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service AvailableCall Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service Available
Call Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service Available
sapnaanpad7
 
Refactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contextsRefactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contexts
Michał Kurzeja
 
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service AvailableFemale Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
isha sharman06
 
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery FleetStork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Vince Scalabrino
 
European Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptxEuropean Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptx
Digital Teacher
 
How GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdfHow GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdf
Zycus
 
Introduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptxIntroduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptx
GevitaChinnaiah
 
Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...
Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...
Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...
Ortus Solutions, Corp
 
Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...
Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...
Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...
simmi singh$A17
 

Recently uploaded (20)

Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...
Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...
Premium Call Girls In Ahmedabad 💯Call Us 🔝 7426014248 🔝Independent Ahmedabad ...
 
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
Independent Call Girls In Bangalore 💯Call Us 🔝 7426014248 🔝Independent Bangal...
 
Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...
Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...
Call Girls Solapur ☎️ +91-7426014248 😍 Solapur Call Girl Beauty Girls Solapur...
 
SAP ECC & S4 HANA PPT COMPARISON MM.pptx
SAP ECC & S4 HANA PPT COMPARISON MM.pptxSAP ECC & S4 HANA PPT COMPARISON MM.pptx
SAP ECC & S4 HANA PPT COMPARISON MM.pptx
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
 
TheFutureIsDynamic-BoxLang-CFCamp2024.pdf
TheFutureIsDynamic-BoxLang-CFCamp2024.pdfTheFutureIsDynamic-BoxLang-CFCamp2024.pdf
TheFutureIsDynamic-BoxLang-CFCamp2024.pdf
 
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical OperationsEnsuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
 
AI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdfAI Based Testing - A Comprehensive Guide.pdf
AI Based Testing - A Comprehensive Guide.pdf
 
Building API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructureBuilding API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructure
 
Trailhead Talks_ Journey of an All-Star Ranger .pptx
Trailhead Talks_ Journey of an All-Star Ranger .pptxTrailhead Talks_ Journey of an All-Star Ranger .pptx
Trailhead Talks_ Journey of an All-Star Ranger .pptx
 
Hands-on with Apache Druid: Installation & Data Ingestion Steps
Hands-on with Apache Druid: Installation & Data Ingestion StepsHands-on with Apache Druid: Installation & Data Ingestion Steps
Hands-on with Apache Druid: Installation & Data Ingestion Steps
 
Call Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service Available
Call Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service AvailableCall Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service Available
Call Girls Goa 💯Call Us 🔝 7426014248 🔝 Independent Goa Escorts Service Available
 
Refactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contextsRefactoring legacy systems using events commands and bubble contexts
Refactoring legacy systems using events commands and bubble contexts
 
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service AvailableFemale Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
Female Bangalore Call Girls 👉 7023059433 👈 Vip Escorts Service Available
 
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery FleetStork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
 
European Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptxEuropean Standard S1000D, an Unnecessary Expense to OEM.pptx
European Standard S1000D, an Unnecessary Expense to OEM.pptx
 
How GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdfHow GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdf
 
Introduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptxIntroduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptx
 
Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...
Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...
Strengthening Web Development with CommandBox 6: Seamless Transition and Scal...
 
Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...
Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...
Independent Call Girls In Kolkata ✔ 7014168258 ✔ Hi I Am Divya Vip Call Girl ...
 

programming

  • 1. Page 1 Govt. Post Graduate College Samanabad Assignment # 01 Object Oriented Programming Submitted To: Mam Iqra Submitted By: Zohaib Arif Roll no.: 6823 Semester: ῙῙ Department of Information & Technology (evening)
  • 2. Page 2 Contents . Program…………………………………………………………………………………………..Page no. I. Display of “Word” for fivetimes……………………………………………………………............ 3 II. Display of five numbers and their sum……………………………………….……………………. 3 III. Display of counting…………………………………………………………………………….………….... 4 IV. Display of numbers and their squares…………………………………………………………...… 4 V. Inputting of number and display its table………………………………………..………….…… 5 VI. Distinguishing of even or odd numbers…………………………………………….………….….. 5 VII. Display of digits in block pattern…………………………………….………………………….….... 6 VIII. Display of symbolas a block..………………………………………………………………………….. 6 IX. Display of digits in descending order as triangle………………………………………………. 7 X. Display of digits in ascending order as triangle………………….…………………………….. 7 XI. Display of moredigits by changing firstdigit every time………………………………….. 8 XII. Initializing and display of digits fromarray…………………………………………………....... 8 XIII. Taking of number fromarray and displaying………………………………………………….... 9 XIV. Inputting storing in an array and displaying of numbers……………………………..…… 9 XV. Inputting the numbers and then store them in an array and display the sumand averageof these numbers…………………..……………………………………………………..….. 10 XVI. Inputday and month and then calculates total number of days………………....…. 10 XVII. Inputvalue and find value using linear search……………………………………………….. 11 XVIII. Inputvalue and find value using binary search………………………………………………. 11 XIX. Inputfive values and sorts it using bubble sort…………………………………………….… 12 XX. Inputfive values and sorts it using selection sort…………………………………………... 12 XXI. Displays a massageusing function…………………………………………………….…………… 13 XXII. Inputnumbers in main function, passes thesenumbers to function and displays maximum number………………………………………………………………………………….……… 14 XXIII. Inputa number in main function and passes and passes the number and function display table……………………………………………………………………………………………….... 15 XXIV. Inputs a number and displays its processor and successor numbers using function………………………………………………….……………………………………………………. 15 XXV. Create class with one integer data member and two member function……… 16 XXVI. Create class with three data member and three member function……………. 16 XXVII. Create two objects of class and input value for these objects and it displays detail of costly book………………………………………………………………………………………………….. 17
  • 3. Page 3 XXVIII. Create class has num& ch data members and one constructor with on parameter and other with two parameter…………………………………………………………………………… 18 XXIX. Create class that has constructer and destructor………………………………………… 19 XXX. Create member function outside the class……………………………………………………20 XXXI. Create member function within the class…………………………………………………… 21
  • 4. Page 4 Program # 01 : To Displayof “Word” for five times Program # 02: To Displayof five numbers and their sum
  • 5. Page 5 Program # 03: To Displayof counting Program # 04: To Displayof numbers and their squares
  • 6. Page 6 Program # 05: To Input a number and displayits table Program # 06: To Distinguish of even or odd numbers
  • 7. Page 7 Program # 07: To Displayof digitsin block pattern Program # 08: To Displayof symbol as a block
  • 8. Page 8 Program # 09: To Displaythe digits in descending order as triangle Program # 10: To Displaythe digits in ascending order as triangle
  • 9. Page 9 Program # 11: To Displaymore digits and changing of first digit every time Program # 12: To Initializingand display of digits from array
  • 10. Page 10 Program # 13: To Take a number from an array and display Program # 14: To Input a number and store it in an array and display by using loop
  • 11. Page 11 Program # 15: To Input the numbers and then store them in an array and display the sum and average of these numbers Program # 16: To Input day and month and then calculates total number of days
  • 12. Page 12 Program # 17: To Input value and find value using linear search Program # 18: Input value and find value using binary search
  • 13. Page 13 Program # 19:To input five values and sorts it using bubble sort
  • 14. Page 14 Program # 20: To input five values and sorts it using selection sort
  • 15. Page 15 Program # 21: To displays a massage using function Program # 22: To input numbers in main function, passes these numbers to function and displays maximumnumber
  • 16. Page 16 Program # 23: To input a number in main function and passes and passes the number and function display table Program # 24: To inputs number and displays its processorand successor number using function
  • 17. Page 17 Program # 25:To declares a class with one integer data member and two member function
  • 18. Page 18 Program # 26:To make a class with three data member and three member function
  • 19. Page 19 Program # 27: To create two objects of class and input value for these objects and it displays detail of costly book
  • 20. Page 20 Program # 28:To make class has num & ch data members and one constructor with on parameter and other with two parameter
  • 21. Page 21 Program # 29:To create class that has constructer and destructor
  • 22. Page 22 Program # 30:To create member function outside the class
  • 23. Page 23 Program # 31:To create member function within the class
  翻译: