summer training report, Cheat Sheet of Software Project Management

brief summer training report.

Typology: Cheat Sheet

2020/2021
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 07/30/2021

vishal-manikpuri
vishal-manikpuri 🇮🇳

5

(2)

1 document

1 / 26

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
SIX WEEKS SUMMER TRAINING REPORT
AND
MINI PROJECT
On
LPU-OBJECT ORIENTED PROGRAMMING USING C++ - INTERNSHIP
Submitted by
Vishal Manikpuri
Registration No. 11905116
Program Name: Computer Science Engineering
Under the guidance of
Training and Placement Co-ordinate of LPU.
Name of the Industry Coordinate
EBOX
School of Computer Science & Engineering
Lovely Professional University,Phagwara
(June-July, 2021)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
Discount

On special offer

Partial preview of the text

Download summer training report and more Cheat Sheet Software Project Management in PDF only on Docsity!

SIX WEEKS SUMMER TRAINING REPORT

AND

MINI PROJECT

On LPU-OBJECT ORIENTED PROGRAMMING USING C++ - INTERNSHIP Submitted by Vishal Manikpuri Registration No. 11905116 Program Name: Computer Science Engineering Under the guidance of Training and Placement Co-ordinate of LPU. Name of the Industry Coordinate EBOX School of Computer Science & Engineering Lovely Professional University,Phagwara (June-July, 2021)

DECLARATION

I hereby declare that I have completed my six weeks summer training at“ EBOX Online” from 1st June to 15th July Under the guidance of “EBOX & Training and Placement Co- ordinator of LPU ”. I have declare that I have worked with full dedication during these six weeks of training and my learning outcomes fulfil the requirements of training for the award of degree of” LPU - Object Oriented Programming using C++ - Internship”, Lovely Professional University, Phagwara. Vishal Manikpuri Registration No: 11905116 Date: 20th^ July 2021 ACKNOWLEDGEMENT

CERTIFICATE

MINI PROJECT CODING ON

SUPERMARKET BILLING SYSTEM

[OBJECT ORIENTED PROGRAMMING]

#include #include<windows.h> #include<conio.h> #include #include #include #include #include using namespace std; //global variable declaration int k=7,r=0,flag=0; COORD coord = {0, 0}; void gotoxy(int x, int y) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } struct date { int mm,dd,yy; }; ofstream fout;

cout<<itemno; gotoxy(13,k); puts(name); } int retno() { return(itemno); } }; class amount: public item { float price,qty,tax,gross,dis,netamt; public: void add(); void show(); void report(); void calculate(); void pay(); float retnetamt() { return(netamt); } } amt; void amount::add() { item::add();

cout<<"\n\n\tPrice: "; cin>>price; cout<<"\n\n\tQuantity: "; cin>>qty; cout<<"\n\n\tTax percent: "; cin>>tax; cout<<"\n\n\tDiscount percent: "; cin>>dis; calculate(); fout.write((char )&amt,sizeof(amt)); fout.close(); } void amount::calculate() { gross=price+(price(tax/100)); netamt=qty(gross-(gross(dis/100))); } void amount::show() { fin.open("itemstore.dat",ios::binary); fin.read((char*)&amt,sizeof(amt)); item::show(); cout<<"\n\n\tNet amount: "; cout<<netamt; fin.close(); } void amount::report() { item::report();

gotoxy(52,5); cout<<"DEDUCTION"; gotoxy(64,5); cout<<"NET AMOUNT"; } } void amount::pay() { show(); cout<<"\n\n\n\t\t*********************************************"; cout<<"\n\t\t DETAILS "; cout<<"\n\t\t*********************************************"; cout<<"\n\n\t\tPRICE :"<<price; cout<<"\n\n\t\tQUANTITY :"<<qty; cout<<"\n\t\tTAX PERCENTAGE :"<<tax; cout<<"\n\t\tDISCOUNT PERCENTAGE :"<<dis; cout<<"\n\n\n\t\tNET AMOUNT :Rs."<<netamt; cout<<"\n\t\t*********************************************"; } int main() { cout.setf(ios::fixed); cout.setf(ios::showpoint); cout<<setprecision(2); fstream tmp("temp.dat",ios::binary|ios::out); menu: system("cls"); gotoxy(25,2);

cout<<"Super Market Billing "; gotoxy(25,3); cout<<"===========================\n\n"; cout<<"\n\t\t1.Bill Report\n\n"; cout<<"\t\t2.Add/Remove/Edit Item\n\n"; cout<<"\t\t3.Show Item Details\n\n"; cout<<"\t\t4.Exit\n\n"; cout<<"\t\tPlease Enter Required Option: "; int ch,ff; float gtotal; cin>>ch; switch(ch) { case 1: ss: system("cls"); gotoxy(25,2); cout<<"Bill Details"; gotoxy(25,3); cout<<"================\n\n"; cout<<"\n\t\t1.All Items\n\n"; cout<<"\t\t2.Back to Main menu\n\n"; cout<<"\t\tPlease Enter Required Option: "; int cho; cin>>cho; if(cho==1) { system("cls"); gotoxy(30,3); cout<<" BILL DETAILS ";

if(ff!=0) gtotal=0; } gotoxy(17,k); cout<<"\n\n\n\t\t\tGrand Total="<<gtotal; getch(); fin.close(); } if(cho==2) { goto menu; } goto ss; case 2: db: system("cls"); gotoxy(25,2); cout<<"Bill Editor"; gotoxy(25,3); cout<<"=================\n\n"; cout<<"\n\t\t1.Add Item Details\n\n"; cout<<"\t\t2.Edit Item Details\n\n"; cout<<"\t\t3.Delete Item Details\n\n"; cout<<"\t\t4.Back to Main Menu "; int apc; cin>>apc; switch(apc) { case 1: fout.open("itemstore.dat",ios::binary|ios::app);

amt.add(); cout<<"\n\t\tItem Added Successfully!"; getch(); goto db; case 2: int ino; flag=0; cout<<"\n\n\tEnter Item Number to be Edited :"; cin>>ino; fin.open("itemstore.dat",ios::binary); fout.open("itemstore.dat",ios::binary|ios::app); if(!fin) { cout<<"\n\nFile Not Found..."; goto menu; } fin.seekg(0); r=0; while(!fin.eof()) { fin.read((char)&amt,sizeof(amt)); if(!fin.eof()) { int x=amt.item::retno(); if(x==ino) { flag=1; fout.seekp(rsizeof(amt)); system("cls");

fin.seekg(0); while(fin.read((char)&amt, sizeof(amt))) { int x=amt.item::retno(); if(x!=ino) tmp.write((char)&amt,sizeof(amt)); else { flag=1; } } fin.close(); tmp.close(); fout.open("itemstore.dat",ios::trunc|ios::binary); fout.seekp(0); tmp.open("temp.dat",ios::binary|ios::in); if(!tmp) { cout<<"Error in File"; goto db; } while(tmp.read((char)&amt,sizeof(amt))) fout.write((char)&amt,sizeof(amt)); tmp.close(); fout.close(); if(flag==1) cout<<"\n\t\tItem Succesfully Deleted"; else if (flag==0) cout<<"\n\t\tItem does not Exist! Please Retry"; getch();

goto db; case 4: goto menu; default: cout<<"\n\n\t\tWrong Choice!!! Retry"; getch(); goto db; } case 3: system("cls"); flag=0; int ino; cout<<"\n\n\t\tEnter Item Number :"; cin>>ino; fin.open("itemstore.dat",ios::binary); if(!fin) { cout<<"\n\nFile Not Found...\nProgram Terminated!"; goto menu; } fin.seekg(0); while(fin.read((char*)&amt,sizeof(amt))) { int x=amt.item::retno(); if(x==ino) { amt.pay(); flag=1; break; }

return 0; }

OUTPUT – CODING

ADDING ITEM DETAILS