This document contains a final project report submitted by Harsh Kumar for the subject of Computer Science. It details the development of a "Super Market Billing" software project under the guidance of his teacher, Mr. Manoj Kumar Singh. The report contains documentation of the software requirements, code structure, functions used, and output. It also includes declarations by Harsh Kumar and examinations by teachers to certify the work as Harsh Kumar's own efforts for his class project.
Computer science class 12 project on Super Market BillingHarsh Kumar
Certificate
--Declaration
--Acknowledgement
--Hardware and software requirements
--Classes and function used
--Header files used
--Files generated
--Working description
--Coding
--Output screen
--Bibliography
This project is based on Library Management. Python and MySQL are the programming platforms which are used in making of this project.
Subject-Informatics Practices
Class-11/12
Computer science class 12 project on Super Market BillingHarsh Kumar
Certificate
--Declaration
--Acknowledgement
--Hardware and software requirements
--Classes and function used
--Header files used
--Files generated
--Working description
--Coding
--Output screen
--Bibliography
This project is based on Library Management. Python and MySQL are the programming platforms which are used in making of this project.
Subject-Informatics Practices
Class-11/12
TOPIC:-
SCIENTIFIC CALCULATOR
PURPOSE:-
To create scientific calculator class to perform the task related to scientific calculations. Which include finding square or cube etc.
The scientific calculator perform following task:-
1. Determine the square of the number.
2. Determine the square root of the number
3. Determine the first number power of the second number
4. Determine the factorial of a number
5. Determine the sin, cos and tan value of the number.
6. Determine the logarithm, natural logarithm and exponential of the number.
Practical Class 12th (c++programs+sql queries and output) Aman Deep
Just download this and do some specific changes in the name section and roll no section . and submit it as it is to your teacher this will surely work and help you out your class 12th board practicals exam . no worries ! ENJOY :) !
this is the computer science project that i created for my friends to submit in the finals for 12th standard. the pages are jumbled up but other than that everything is good.
TOPIC:-
SCIENTIFIC CALCULATOR
PURPOSE:-
To create scientific calculator class to perform the task related to scientific calculations. Which include finding square or cube etc.
The scientific calculator perform following task:-
1. Determine the square of the number.
2. Determine the square root of the number
3. Determine the first number power of the second number
4. Determine the factorial of a number
5. Determine the sin, cos and tan value of the number.
6. Determine the logarithm, natural logarithm and exponential of the number.
Practical Class 12th (c++programs+sql queries and output) Aman Deep
Just download this and do some specific changes in the name section and roll no section . and submit it as it is to your teacher this will surely work and help you out your class 12th board practicals exam . no worries ! ENJOY :) !
this is the computer science project that i created for my friends to submit in the finals for 12th standard. the pages are jumbled up but other than that everything is good.
Create the equivalent of a four function calculator. The program should request the user to enter a number, an operator, and another number. carry out the specified arithmetical operation: adding, subtracting, multiplying, or dividing the two numbers. (Using switch statement ).ThesisScientist.com
Material ini digunakan untuk kelas teknologi pengenalan pemrograman dengan bahasa pengantar Python http://oo.or.id/py
Dipublikasikan dengan lisensi Atribusi-Berbagi Serupa Creative Commons (CC BY-SA) oleh oon@oo.or.id
A C++ program //include headers; these are modules that include functions that you may use in your //program; we will almost always need to include the header that // defines cin and cout; the header is called iostream.h #include <iostream.h>
int main() {
//variable declaration //read values input from user //computation and print output to user return 0; }
After you write a C++ program you compile it; that is, you run a program called compiler that checks whether the program follows the C++ syntax – if it finds errors, it lists them – If there are no errors, it translates the C++ program into a program in machine language which you can execute.
I have the first program completed (not how request, but it works) a.pdffootworld1
I have the first program completed (not how request, but it works) and I am trying to get the
second portion together.
First Program requested (complete)**********************************************
(1) Create three files to submit:
ItemToPurchase.h - Class declaration
ItemToPurchase.cpp - Class definition
main.cpp - main() function
Build the ItemToPurchase class with the following specifications:
Default constructor
Public class functions (mutators & accessors)
SetName() & GetName() (2 pts)
SetPrice() & GetPrice() (2 pts)
SetQuantity() & GetQuantity() (2 pts)
Private data members
string itemName - Initialized in default constructor to \"none\"
int itemPrice - Initialized in default constructor to 0
int itemQuantity - Initialized in default constructor to 0
(2) In main(), prompt the user for two items and create two objects of the ItemToPurchase class.
Before prompting for the second item, call cin.ignore() to allow the user to input a new string. (2
pts)
Ex:
(3) Add the costs of the two items together and output the total cost. (2 pts)
Ex:
Second Portion I am on
now**************************************************************************
*******
7.19 Program: Online shopping cart (continued) (C++)
This program extends the earlier \"Online shopping cart\" program. (Consider first saving your
earlier program).
(1) Extend the ItemToPurchase class per the following specifications:
Parameterized constructor to assign item name, item description, item price, and item quantity
(default values of 0). (1 pt)
Public member functions
SetDescription() mutator & GetDescription() accessor (2 pts)
PrintItemCost() - Outputs the item name followed by the quantity, price, and subtotal
PrintItemDescription() - Outputs the item name and description
Private data members
string itemDescription - Initialized in default constructor to \"none\"
Ex. of PrintItemCost() output:
Ex. of PrintItemDescription() output:
(2) Create three new files:
ShoppingCart.h - Class declaration
ShoppingCart.cpp - Class definition
main.cpp - main() function (Note: main()\'s functionality differs from the warm up)
Build the ShoppingCart class with the following specifications. Note: Some can be function
stubs (empty functions) initially, to be completed in later steps.
Default constructor
Parameterized constructor which takes the customer name and date as parameters (1 pt)
Private data members
string customerName - Initialized in default constructor to \"none\"
string currentDate - Initialized in default constructor to \"January 1, 2016\"
vector < ItemToPurchase > cartItems
Public member functions
GetCustomerName() accessor (1 pt)
GetDate() accessor (1 pt)
AddItem()
Adds an item to cartItems vector. Has parameter ItemToPurchase. Does not return anything.
RemoveItem()
Removes item from cartItems vector. Has a string (an item\'s name) parameter. Does not return
anything.
If item name cannot be found, output this message: Item not found in cart. Nothing removed.
ModifyItem()
Modifies an it.
The Computer Shop System is designed & developed for a computer shop to manage their records of selling and purchasing of the computer parts from the dealers and sell them to the customers. This system makes the work of the computer shopkeepers easy as it keeps all the records of the computer product and also keep the records of the product that is sold to the customers.
This presentation introduces the audience to BDD - the Behavior-Driven Development method and how it can be applied to development and testing of GUI applications. We will also try to debunk myths and false hopes surrounding it.
BDD centers around stories written in an "ubiquitous language" that describe the expected behavior of an application. The use of a human-readable language allows for technical as well as non-technical project stakeholders to participate in authoring of feature descriptions. Those descriptions then serve as a base for the work of both developers and testers.
Classic agile and test-driven programming takes an inside-out approach by focussing on the specification and testing of the API of individual software components. BDD, on the other hand, looks at the application as a whole and puts interaction sequences and their expected outcomes into the foreground.
An introduction to the de-facto standard BDD language Gherkin will be given. It became popular as part of the Cucumber Ruby testing framework but has found its way into various free and commercial tools that will be listed.
A sample feature file including scenarios, outlines and backgrounds descriptions will be developed live using the Squish GUI Tester. This feature file can already be "run" in dry mode. We'll see different types of usage of this input:
* A mean to communicate with the customer.
* Documentation for the acceptance test before delivery
* A sequence to walk through for manual testing
* Automated GUI testing through tools like Squish.
PT1420 Modules in Flowchart and Visual Basic .docxamrit47
PT1420: Modules in Flowchart and Visual Basic
Page 1
This lab requires you to think about the steps that take place in a program by designing a
flowchart. Use an application such as Raptor or Visio. Read the following program prior to
completing the lab.
Data Communications Corp wants a small program that will calculate the cost of UTP it
installs for their clients. Write a program that will ask the user to input the name of the
client and the number of feet of cable installed. The program should then calculate and
display a final bill. Cost per foot of UTP is .21 cents. Be sure to add on a tax of 6%. Final
bill should include the total cost and client name. Be sure to add modules to your
program.
Step 1: In main, create a module called declareVariables() that will set your variables to 0 or “ “.
Click the Call Symbol on the Left and Drag and Drop to the flow lines between Start and Stop.
Double click on the Call Symbol and type the name of your first module. For example, type
declareVariables in the Enter Call box. Do not put the ( ) when using Raptor. Click the Done
button. A new box will pop up that will ask you to create a new tab. Click Yes. A new tab will be
created for your new method. Notice the new Tab called declareVariables.
Watch the Help Video 4-2 to see how to add modules and initialize variables in Raptor and
Visio.
PT1420: Modules in Flowchart and Visual Basic
Page 2
Step 2: Continue this process to add your additional methods, which are inputData(),
calcCosts(), and displayBill(). Main should look like this:
In Raptor
In Visio
Start
End
declareVariables()
inputData()
calcCosts()
displayBill()
Step 3: Click on the inputData module and add the necessary code to input clientName and
feetUTP. Watch the Help Video 4-2 to see how to input variables in Raptor and Visio.
Step 4: Click the calcCosts module and add the necessary code to compute calculations. Watch
the Help Video 4-2 to see how to add calculations in Raptor and Visio.
Step 5: Click the displayBill module and add the necessary code to display the clientName and
totalCost to the screen. Watch the Help Video 4-2 to see how to display variables in Raptor and
Visio.
PT1420: Modules in Flowchart and Visual Basic
Page 3
Step 6: If you are using Raptor, you can run your program. Click Run, then Execute to Finish. For
your input, enter a client name such as Bumpco Inc and ...
Expert Accessory Dwelling Unit (ADU) Drafting ServicesResDraft
Whether you’re looking to create a guest house, a rental unit, or a private retreat, our experienced team will design a space that complements your existing home and maximizes your investment. We provide personalized, comprehensive expert accessory dwelling unit (ADU)drafting solutions tailored to your needs, ensuring a seamless process from concept to completion.
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Mansi Shah
This study examines cattle rearing in urban and rural settings, focusing on milk production and consumption. By exploring a case in Ahmedabad, it highlights the challenges and processes in dairy farming across different environments, emphasising the need for sustainable practices and the essential role of milk in daily consumption.
Hello everyone! I am thrilled to present my latest portfolio on LinkedIn, marking the culmination of my architectural journey thus far. Over the span of five years, I've been fortunate to acquire a wealth of knowledge under the guidance of esteemed professors and industry mentors. From rigorous academic pursuits to practical engagements, each experience has contributed to my growth and refinement as an architecture student. This portfolio not only showcases my projects but also underscores my attention to detail and to innovative architecture as a profession.
Dive into the innovative world of smart garages with our insightful presentation, "Exploring the Future of Smart Garages." This comprehensive guide covers the latest advancements in garage technology, including automated systems, smart security features, energy efficiency solutions, and seamless integration with smart home ecosystems. Learn how these technologies are transforming traditional garages into high-tech, efficient spaces that enhance convenience, safety, and sustainability.
Ideal for homeowners, tech enthusiasts, and industry professionals, this presentation provides valuable insights into the trends, benefits, and future developments in smart garage technology. Stay ahead of the curve with our expert analysis and practical tips on implementing smart garage solutions.
2. This is to certify that Master Harsh Kumar of Class XII
Sc. has prepared the report on the project entitled “Super
Market Billing”. The report is the result of his efforts and
endeavors. The report is found worthy of acceptance as
final project report for the subject Computer Science of
Class XII. He has prepared the report under my guidance.
(Mr. Manoj Kumar Singh)
PGT (computer science)
Department of Computer Science
Kendriya Vjdyalaya, Khagaria
3. The project report entitled
“Super Market Billing”
Submitted by Harsh Kumar of Class XII Sci.
for the CBSE Senior secondary examination
class XII of Computer Science at Kendriya
Vidyalaya, Khagaria has been examined.
SIGNATURE OF EXAMINER
4. I hereby declare that the project work
entitled “Super Market Billing”, submitted to
department of computer science, Kendriya
Vidyalaya, Khagaria is prepared by me. All the
coding is result of my personal efforts.
HARSH KUMAR
Class- XII Sci.
5. I would like to express a deep sense of thanks to
my project guide Mr. Manoj Kumar Singh Sir for
guiding me immensely though the course of the
project. He always evinced keen interest in my
work. His constructive advice and constant
motivation have been responsible for the
successful completion of this project.
My sincere thanks go to Mr. Yashdeep Rohilla, our
principal sir, for His coordination in extending
every possible support for the completion of this
project.
I also thanks to my parents for their motivation
and support. I must thanks to my classmates for
their timely help and support for compilation of
this project.
Last but not the least; I would like to thank all
those who had helped directly or indirectly
toward the completion of this project.
7. The platform used is C++. Hence we
decided to use Microsoft Visual Studio
2010/2008 edition (Professional Edition).
For optional coding and easy debugging we
used Microsoft Visual Studio 2008 edition
and made explicit .cpp files.
Henceforth for optimal usage of such
software a windows based operating system
preferably Windows vista/7/XP must be
there. Also on the hardware part any system
having Windows Vista/7/XP installed will
suffice.
8. Class:
Product
Functions
create_product():
This function is to be used by
theadministrator to add new products to
their list.
• show_product():
This function is used bytheadministrator
to display the details of all the products.
• retprice():
It returns the price of theproduct.
• retpno():
It returns the product number.
9. • retname():
It returns the name of the product.
• retdis():
It returns the discount available on the
product
• fstream:
The object declared for this class isfp. It
isthe predefined class used for both File-
to-Memory/Memory-to-File linking.
• write_product():
This function writes the informationabout
the product in the file
• display_all():
This function displays all records.
• display_sp():
This function displays some
specificrecordsbased on the product
number entered by the user.
10. • modify_product():
This function modifies the product details
by entering the product number.
• delete_product():
This function deletes the product by
entering the product number
• menu():
This function the product number, its
name and its price.
• place_order():
This function places order and generates
bill for the products bought.
• box():
This function is used to create outlines
around the outputs.
• intro():
This function displays the project name.
11. • admin_menu():
This function displays a list of functionto
be operated by administrator to
modify/updateproducts details .The
function uses above user-
definedfunctions.
• main():
This is the main function which just
theMAINMENUfrom where the control is
transferred to otherfunctions
12. fstream.h- for file handling, cin, cout,
open(),close(),seekp()
process.h- for exit() function
conio.h- for clrscr(), getch() and
gotoxy(X,Y) functions
stdio.h- for standard I/O operations
string.h- for string handling
14. Work in the Supermarket will be done in the
following way the product will come in the store.
The Administrator will enter the information of
theproduct in database and price and
discountavailable for each product.
The customer will come and take the basket with
him/her and choose the product and take it to the
counter.
The bill calculating operator will enter the
productnumber then it will show its information and
price and the bill will be calculated and total payment
will be shown.
Customer will pay for the products.
15. /*----------Super Market Billing-------------*/
/*Header File*/
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
/*Class*/
class product
{
int pno;
char name[50];
float price,qty,tax,dis;
public:
product()
{
pno=000;
strcpy(name,"...");
price=000;
qty=000;
tax=000;
dis=000;
}
void create_product()
{
cout<<"Please Enter The Product No.
of The Product: ";
16. cin>>pno;
cout<<"nnPlease Enter The Name of
The Product: ";
gets(name);
cout<<"nPlease Enter The Price of
The Product: ";
cin>>price;
cout<<"nPlease Enter The Discount
(%): ";
cin>>dis;
}
void show_product()
{
cout<<"nThe Product No. of The
Product: "<<pno;
cout<<"nThe Name of The Product: ";
puts(name);
cout<<"nThe Price of The Product:
"<<price;
cout<<"nDiscount: "<<dis;
}
int retpno()
{
return pno;
}
float retprice()
{
return price;
}
char* retname()
{
17. return name;
}
int retdis()
{
return dis;
}
}; //class ends here
/*Global declaration for stream object,
object*/
fstream fp;
product pr;
/*Function to write in file*/
void write_product()
{
fp.open("Shop.dat",ios::out|ios::app);
pr.create_product();
fp.write((char*)&pr,sizeof(product));
fp.close();
cout<<"nnThe Product Has Been Created ";
getch();
}
/*Function to read all records from file*/
void display_all()
{
clrscr();
cout<<"nnnttDISPLAY ALL RECORD
!!!nn";
fp.open("Shop.dat",ios::in);
while(fp.read((char*)&pr,sizeof(product)))
{
pr.show_product();
18. cout<<"nn=============================n";
getch();
}
fp.close();
getch();
}
/*Function to read specific record from
file*/
void display_sp(int n)
{
int flag=0;
fp.open("Shop.dat",ios::in);
while(fp.read((char*)&pr,sizeof(product)))
{
if(pr.retpno()==n)
{
clrscr();
pr.show_product();
flag=1;
}
}
fp.close();
if(flag==0)
cout<<"nnrecord not exist";
getch();
}
/*Function to modify record of file*/
void modify_product()
{
int no,found=0;
clrscr();
cout<<"nntTo Modify ";
19. cout<<"nntPlease Enter The Product No. of
The Product: ";
cin>>no;
fp.open("Shop.dat",ios::in|ios::out);
while(fp.read((char*)&pr,sizeof(product)) &&
found==0)
{
if(pr.retpno()==no)
{
pr.show_product();
cout<<"nPlease Enter The New Details
of Product:n";
pr.create_product();
int pos=-1*sizeof(pr);
fp.seekp(pos,ios::cur);
fp.write((char*)&pr,sizeof(product));
cout<<"nnt Record Updated";
found=1;
}
}
fp.close();
if(found==0)
cout<<"nn Record Not Found ";
getch();
}
/*Function to delete record of file*/
void delete_product()
{
int no;
clrscr();
cout<<"nnntDelete Record";
cout<<"nnPlease Enter The product no. of
The Product You Want To Delete: ";
cin>>no;
25. cout<<"5.DELETE PRODUCT";
gotoxy(30,14);
cout<<"6.VIEW PRODUCT MENU";
gotoxy(30,16);
cout<<"7.BACK TO MAIN MENU";
gotoxy(36,18);
cout<<"8.EXIT";
gotoxy(25,20);
cout<<"Please Enter Your Choice (1-7) ";
ch2=getche();
switch(ch2)
{
case '1':
clrscr();
write_product();
break;
case '2':
display_all();
break;
case '3':
int num;
clrscr();
cout<<"nntPlease Enter The Product
No. ";
cin>>num;
display_sp(num);
break;
case '4':
modify_product();
break;
case '5':
delete_product();
break;
case '6':
menu();
26. getch();
case '7':
break;
case '8':
exit(0);
break;
default:
cout<<"a";
admin_menu();
}
}
/*THE MAIN FUNCTION OF PROGRAM*/
void main()
{
char ch;
intro();
do{
clrscr();
box();
gotoxy(34,2);
cout<<"MAIN MENU";
gotoxy(32,4);
cout<<"01. CUSTOMER";
gotoxy(30,6);
cout<<"02. ADMINISTRATOR";
gotoxy(34,8);
cout<<"03. EXIT";
gotoxy(25,10);
cout<<"Please Select Your Option (1-3) ";
ch=getche();
switch(ch)
{
case '1':
clrscr();