Preview

My Computer Science Project

Powerful Essays
Open Document
Open Document
3092 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
My Computer Science Project
Programs on C++

Akshay Kishor Chauhan
XI-Bliss
Roll No. :- Three

Acknowledgment
I would like to express my special thanks of gratitude to my teachers as well as our principal who gave me the golden opportunity to do this wonderful project, which also helped me in doing a lot of Research and I came to know about so many new things. I am really thankful to them.

Secondly I would also like to thank my parents and friends who helped me a lot in finishing this project within the limited time.

I am making this project not only for marks but to also increase my knowledge.

THANKS AGAIN TO ALL WHO HELPED ME.

Content 1. No Of Digits in Number 2. Decimal to Binary & viceversa 3. Sum of Series 4. Binary to Octal & Octal to Binary 5. Reversing each word in a string 6. Sum of Series 2 7. No of Char, Vowels, Space in a string 8. Star Design + Pascals Triangle 9. Bubble Selection Sort 10. Linear & Binary Search 11. Merge Arrays 12. Insert & Delete an element from array 13. Multiplication of 2 matrix 14. Row Column Sum 15. Diagonal Sum

No Of Digits in Number
#include<iostream.h>
#include<conio.h> void main()
{
clrscr(); int x=0,n; cout<<"Enter the number :"; cin>>n; while(n>0)
{
n=n/10; x=x+1; } cout<<"The no of digits are :"<<x; getch(); }

Output:-

Decimal to Binary & viceversa

#include<iostream.h>
#include<conio.h>
#include<math.h> void main()
{
clrscr(); int a,g,h,s=0,i=0,d,b,ch; cout<<endl<<"Enter the choice - "<<endl<<"1:Binary to Decimal"<<endl<<"2:Decimal to Binary"<<endl; cin>>ch; switch(ch)
{
case 1:

cout<<"Enter the Binary Digit"<<endl; cin>>b; while(b>0)
{
a=b%10; s=s+a*(pow(2,i)); i=i+1; b=b/10; } cout<<"Answer ="<<s<<endl; break; case 2: cout<<"Enter the

You May Also Find These Documents Helpful