Om Oop MP
Om Oop MP
Student Names
Prashant M Sawale
Om R Nagre
Umesh S Thakare
Yash K Shinde
Principal
Dr. B. G. Gawalwad
Second year Student of Information Technology has submitted a MICRO PROJECT report on "
Develope super market billing application”
During the academic session 2023-2024 in a satisfactory manner in the partial fulfillment for the
requirement of
Technology” Awarded by
Principal
Dr. B. G. Gawalwad
Government Polytechnic, Washim
SUBMITTED BY THE GROUP OF
Roll No.
Of Semester 3nd of Diploma in Information
Technology [IF3I] of Institute, Government
Polytechnic, Washim (0031) has complete their
micro project satisfactory in Course for
academic year 2023-2024
Place :
Washi
m
Enroll
ment
No. :
Date:
Subject Teacher. H. O. D
Mr. U. A. Bagade. Mr. U. A. Bagade
.
Principal
Dr. B. G. Gawalwad
Source Code:
#include <iostream>
#include <process.h>
#include <fstream>
#include <stdlib.h>
using namespace std;
class head
{
char Iname[50][50];
public:
int totalitems;
float Qty[3];
float price[3];
int vatprice[3];
int tprice[3];
void input();
void output();
};
class vat : public head
{
float vats;
public:
void vatcal();
void outputs();
void sum();
};
void head::input()
{
system("CLS");
cout << "\nEnter number of items= ";
cin >> totalitems;
ifstream infile("COUNT.TXT");
infile >> a;
ofstream outfile("COUNT.TXT");
a += 1;
outfile << a;
outfile.close();
{
ofstream outfile("HIS.TXT", ios::app);
outfile << endl
<< "Bill No.: " << a << endl;
outfile << "------------------------------------------------------------------------" << endl;
cout << "\n";
cout << "Name of Item\tQuantity Price Total Price\n";
for (int i = 0; i < totalitems; i++)
{
outfile << "Name: " << Iname[i] << " Qty: " << Qty[i] << " Price: " << tprice[i] << endl;
cout << Iname[i] << "\t\t" << Qty[i] << "\t " << price[i] << "\t " << tprice[i] << '\n';
}
pay:
cout << "\n\n\t\t\t * * * * PAYMENT SUMMARY * * * * \n";
cout << "\n\t\t\tTotal cash given: ";
cin >> cash;
else
{
cout << "\n\t\t\tCash given is less than total amount!!!";
goto pay;
}
}
int passwords()
{
if ((p1 == 's' || p1 == 'S') && (p2 == 'i' || p2 == 'I') && (p3 == 'd' || p3 == 'D'))
return 1;
else
return 0;
}
int main()
{
vat obj;
char opt, ch;
int a = 1;
ifstream fin;
a == passwords();
if (!a)
{
for (int i = 0; i < 2; i++)
{
cout << "\nWrong password try once more\n";
if (passwords())
{
goto last;
}
else
{
cout << "\n\n\t\t\t all attempts failed.....";
cout << "\n\n\n\t\t\t see you.................. ";
exit(0);
}
}
cout << "\t\t\t sorry all attempts failed............. \n \t\t\tinactive";
}
else
{
last:;
do
{
start:
system("PAUSE");
system("CLS");
cout << "\n\n\t\t\t------------------------------";
cout << "\n\t\t\tBilling Management System";
cout << "\n\t\t\t------------------------------";
cout << "\n\n\t\t\tWhat you want to do?";
cout << "\n\t\t\t1.\tTo enter new entry\n\t\t\t2.\tTo view previous entries\n\t\t\t3.\tExit\n";
cout << "\n\nEnter your option: ";
cin >> opt;
switch (opt)
{
case '1':
obj.vatcal();
obj.outputs();
goto start;
case '2':
fin.open("HIS.TXT", ios::in);
while (fin.get(ch))
{
cout << ch;
}
fin.close();
goto start;
case '3':
exit(0);
default:
cout << "\a";
}