0% found this document useful (0 votes)
204 views11 pages

Computer Science: Project File

This document contains a computer science project file for a book shop program. It includes an acknowledgement section thanking teachers for guidance. It also includes a certificate section certifying completion of the project. The main body of the document includes coding for a basic calculator program using C++ that allows users to perform mathematical operations like addition, subtraction, multiplication, division, and more. It gets input from the user and displays output and allows the user to continue or exit the program.

Uploaded by

harpriyaminhas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views11 pages

Computer Science: Project File

This document contains a computer science project file for a book shop program. It includes an acknowledgement section thanking teachers for guidance. It also includes a certificate section certifying completion of the project. The main body of the document includes coding for a basic calculator program using C++ that allows users to perform mathematical operations like addition, subtraction, multiplication, division, and more. It gets input from the user and displays output and allows the user to continue or exit the program.

Uploaded by

harpriyaminhas
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

COMPUTER SCIENCE PROJECT FILE ON BOOK-SHOP

PROJECT PREPARED BY:


CLASS XII Session:

TABLE OF CONTENTS
Certificate Acknowledgement Header files and their purpose Coding Limitations Requirements Bibliography

Acknowledgement
I thank my Computer Science teacher _____ for guidance and support. I also thank my Principal ______. Finally I would like to thank CBSE for giving me this opportunity to undertake this project.

Certificate
This is to certify that __________ of class twelve, of this Vidyalaya , has successfully completed his project in computer practicals for the AISSCE as prescribed by CBSE in the year ___.

Date : Roll No. :

Signature of Internal Examiner

Signature of External Examiner

__________________

__________________

HEADER FILES USED AND THEIR PURPOSE


1. #include<iostream.h> - for handling cin, cout functions 2. #include<conio.h> - for getch() and clrscr() 3. #include<math.h> - for mathematical functions

CODING

#include<iostream.h> #include<conio.h> #include<math.h> void main() { long double x,y; char ch,ar; do { clrscr(); cout<<"**************WELCOMETOC++'SCALCULATOR*************"; cout<<'\n'<<"This is a Calculator containing the following functions"; cout<<'\n'<<"1.Addition"<<'\n'<<"2.Subtraction"<<'\n'; cout<<"3.Multiplication"<<'\n'<<"4.Division"<<'\n'<<"5.Percentage"; cout<<'\n'<<"6.Power "<<'\n'; cout<<"Type"<<'\n'<<"[+] for Addition"<<'\n'; cout<<"[-] for Subtraction"<<'\n'<<"[*] for Multiplication"<<'\n'; cout<<"[/] for Division"<<'\n'<<"[%] for Percentage"<<'\n'; cout<<"[^] for Power "<<'\n'; cout<<"Enter Function To use = "; cin>>ch; cout<<(char)7; cout<<endl; //For Addition if(ch=='+')

{ clrscr(); cout<<"You are using Addition"; cout<<'\n'<<"Enter First Number= "; cin>>x; cout<<"Enter Second Number= "; cin>>y; cout<<"Your answer is "; cout<<x+y; cout<<(char)7; } // For Subtraction if(ch=='-') { clrscr(); cout<<"You are using Subtraction"; cout<<'\n'<<"Enter First Number= "; cin>>x; cout<<"Enter Second Number= "; cin>>y; cout<<"Your answer is "; cout<<x-y; cout<<(char)7; } // For Multiplication if(ch=='*') { clrscr(); cout<<"You are using Multiplication";

cout<<'\n'<<"Enter First Number= "; cin>>x; cout<<"Enter Second Number= "; cin>>y; cout<<"Your answer is "; cout<<x*y; cout<<(char)7; } // For Division if(ch=='/') { clrscr(); cout<<"You are using Division"; cout<<'\n'<<"Enter First Number= "; cin>>x; cout<<"Enter Second Number= "; cin>>y; cout<<"Your answer is "; cout<<x/y; cout<<(char)7; } // For Percentage if(ch=='%') { clrscr(); cout<<"You are using Percentage"; cout<<'\n'<<"Enter Number= "; cin>>x; cout<<"Enter Percentage= ";

cin>>y; cout<<"Your answer is "; cout<<y/100*x; cout<<(char)7; } //For Power if(ch=='^') { clrscr(); cout<<"You are using Power"; cout<<'\n'<<"Enter Number= "; cin>>x; cout<<"Enter Power= "; cin>>y; cout<<"Your answer is "; cout<<pow(x,y); cout<<(char)7; } cout<<endl; cout<<"Do you want to continue..Y/N?"; cin>>ar;

} while(ar=='Y'|| ar=='y'); if(ar=='N' || ar=='n') { cout<<"****Thankyou for using this Calculator.Good Bye.****; cout<<'\n'<<"Press any key to exit......."; }

getch(); cout<<(char)7; }

You might also like