0% found this document useful (0 votes)
9 views

Om Oop MP

Create a project for all groups members helps

Uploaded by

Adinath Khandare
Copyright
© © All Rights Reserved
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)
9 views

Om Oop MP

Create a project for all groups members helps

Uploaded by

Adinath Khandare
Copyright
© © All Rights Reserved
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/ 10

A

MICRO PROJECT REPORT


ON

Subject- object oriented


programming using c++ (22316)
Submitted By

Student Names

Prashant M Sawale
Om R Nagre
Umesh S Thakare
Yash K Shinde

Subject Teacher H.O.D.


Mr. U. A. Bagade Mr. U. A. Bagade

(Lecturer in Info. Tech.Department) (Info. Tech. Department)

Principal

Dr. B. G. Gawalwad

( Info. Principal of G.P.Washim)


CERTIFICATE

This is to certify that

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

Subject- object oriented programming using c++ (22316)

for the Diploma in “Information

Technology” Awarded by

Maharashtra State Board of Technical Education, Mumbai.

Subject Teacher. H.O.D

Mr. U. A. Bagade. Mr. U. A. Bagade

(Lecturer in Info. Tech. Department) (Info. Tech. Department)

Principal
Dr. B. G. Gawalwad
Government Polytechnic, Washim
SUBMITTED BY THE GROUP OF

Roll No Name Of Student Enrollment

69 Prashant Motiram Sawale 2200310385

67 Om Rameshwar Nagre 2200310357

40 Umesh Shamrao Thakare 2200310351

65 Yash Kiran Shinde 2200310343


Certificate
This is to certify that Mr/Miss.

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;

for (int i = 0; i < totalitems; i++)


{
cout << "\nEnter name of item " << i + 1 << ": ";
cin >> Iname[i];
cout << "Enter quantity: ";
cin >> Qty[i];
cout << "Enter price of item " << i + 1 << ": ";
cin >> price[i];
tprice[i] = Qty[i] * price[i];
}
}
void head::output()
{
int a;

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';
}

outfile << "------------------------------------------------------------------------" << endl;


outfile.close();
}
}
void vat::vatcal()
{
input();
for (int i = 0; i < totalitems; i++)
{
if (price[i] <= 100.00)
{
vatprice[i] = tprice[i] + (0.03 * tprice[i]);
}
else
{
vatprice[i] = tprice[i] + (0.1 * tprice[i]);
}
}
}
void vat::outputs()
{
output();

float cash = 0, sum = 0, qty = 0, sumt = 0;

for (int i = 0; i < totalitems; i++)


{
sumt += tprice[i];
sum += vatprice[i];
qty += Qty[i];
}
cout << "\nTotal:";
cout << "\n------------------------------------------------------------------------------";
cout << "\n\tQuantity= " << qty << "\t\t Sum= " << sumt << "\tWith Vat:" << sum;
cout << "\n------------------------------------------------------------------------------";

pay:
cout << "\n\n\t\t\t * * * * PAYMENT SUMMARY * * * * \n";
cout << "\n\t\t\tTotal cash given: ";
cin >> cash;

if (cash >= sum)


cout << "\n\t\t\tTotal cash repaid: " << cash - sum << '\n';

else
{
cout << "\n\t\t\tCash given is less than total amount!!!";

goto pay;
}
}
int passwords()
{

char p1, p2, p3;

cout << "\n\n\n\n\n\n\t\t\tENTER THE PASSWORD: ";

cin >> p1;


cout << "*";
cin >> p2;
cout << "*";
cin >> p3;
cout << "*";

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";
}

} while (opt != 3);


}
return 0;
}
Output :

You might also like