SlideShare a Scribd company logo
1 of 3
Download to read offline
This is C# windows form , I am expected to have an Inventory Management Project. This is to
include the following: arrays and collection processing, input validation and exception handling,
date processing and calculations, output formats, great user experience including some graphics
and maybe animation, PLUS all the default requirements such as good GUI layout, tabbing,
Enter and Esc keys, object/control naming, and documentation!
Solution
#include
int bubble(int*,int);
void filewrite();
void avgmarks();
void fileprint();
void filesort();
void rollin();
int bubble(int x[],int n)
{
int hold,j,pass,i,switched = 1;
for(pass = 0; pass < n-1 && switched == 1;pass++)
{
switched=0;
for (j=0;jx[j+1])
{
switched=1;
hold = x[j];
x[j] = x[j+1];
x[j+1]=hold;
}
}
return(0);
}
void filewrite()
{
int roll,ch,mark;
char nam[50];
FILE *fp;
clrscr();
fp = fopen("student.txt","a");
printf("ENTER ROLL NUMBER, NAME , MARKS  ");
ch =1;
while(ch)
{
scanf("%d%s%d",&roll,&nam,&mark);
fprintf(fp,"%d %s %d ",roll,nam,mark);
printf("  press 1 to continue,0 to stop");
scanf("%d",&ch);
}
fclose(fp) ;
}
void fileprint()
{
int marks[100],rollno[100],x[100],i;
char name[100][50];
FILE *fp;
clrscr();
fp = fopen("student.txt","r");
i=0;
printf("ROLLNO NAME MARK ");
while(!feof(fp))
{
fscanf(fp,"%d %s %d ",&rollno[i],&name[i],&marks[i]);
printf(" %d %s %d ",rollno[i],name[i],marks[i]);
i=i+1;
}
fclose(fp);
printf("   PRESS ANY KEY");
getch();
}
void filesort()
{ int marks[100],rollno[100],x[100],n,i,j;
char name[100][50];
FILE *fp,*fm;
fp = fopen("student.txt","r");
fm = fopen("marks.txt","w");
i=0;
while(! feof(fp))
{
fscanf(fp,"%d %s %d ",&rollno[i],&name[i],&marks[i]);
x[i]= marks[i];
i=i+1;
}
n=i;
bubble(x,n);
for(i=0;i

More Related Content

Similar to This is C# windows form , I am expected to have an Inventory Managem.pdf

All I know about rsc.io/c2go
All I know about rsc.io/c2goAll I know about rsc.io/c2go
All I know about rsc.io/c2go
Moriyoshi Koizumi
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semester
DOSONKA Group
 

Similar to This is C# windows form , I am expected to have an Inventory Managem.pdf (20)

pattern-printing-in-c.pdf
pattern-printing-in-c.pdfpattern-printing-in-c.pdf
pattern-printing-in-c.pdf
 
Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16
 
Moving Average Filter in C
Moving Average Filter in CMoving Average Filter in C
Moving Average Filter in C
 
All I know about rsc.io/c2go
All I know about rsc.io/c2goAll I know about rsc.io/c2go
All I know about rsc.io/c2go
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semester
 
JavaScript 2016 for C# Developers
JavaScript 2016 for C# DevelopersJavaScript 2016 for C# Developers
JavaScript 2016 for C# Developers
 
Some stuff about C++ and development
Some stuff about C++ and developmentSome stuff about C++ and development
Some stuff about C++ and development
 
RDataMining slides-r-programming
RDataMining slides-r-programmingRDataMining slides-r-programming
RDataMining slides-r-programming
 
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
 
Embedded C - Day 2
Embedded C - Day 2Embedded C - Day 2
Embedded C - Day 2
 
Managing console
Managing consoleManaging console
Managing console
 
C#, What Is Next?
C#, What Is Next?C#, What Is Next?
C#, What Is Next?
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
 
AngularJs in Las Palmas de GC
AngularJs in Las Palmas de GCAngularJs in Las Palmas de GC
AngularJs in Las Palmas de GC
 
Cbasic
CbasicCbasic
Cbasic
 
Cbasic
CbasicCbasic
Cbasic
 
chapter1
chapter1chapter1
chapter1
 
R programmingmilano
R programmingmilanoR programmingmilano
R programmingmilano
 
Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...
 
Introduction to typescript
Introduction to typescriptIntroduction to typescript
Introduction to typescript
 

More from seasonsnu

In a Davis U-tube experiment, you add a different strain of auxotroph.pdf
In a Davis U-tube experiment, you add a different strain of auxotroph.pdfIn a Davis U-tube experiment, you add a different strain of auxotroph.pdf
In a Davis U-tube experiment, you add a different strain of auxotroph.pdf
seasonsnu
 
I dont really know what two factor analysis is All my study guid sa.pdf
I dont really know what two factor analysis is All my study guid sa.pdfI dont really know what two factor analysis is All my study guid sa.pdf
I dont really know what two factor analysis is All my study guid sa.pdf
seasonsnu
 
Compare and contrast eukaryotic and prokaryotic cells. Why do you th.pdf
Compare and contrast eukaryotic and prokaryotic cells. Why do you th.pdfCompare and contrast eukaryotic and prokaryotic cells. Why do you th.pdf
Compare and contrast eukaryotic and prokaryotic cells. Why do you th.pdf
seasonsnu
 
CHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdf
CHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdfCHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdf
CHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdf
seasonsnu
 
What’s the difference between soluble and insoluble fiberWhy is f.pdf
What’s the difference between soluble and insoluble fiberWhy is f.pdfWhat’s the difference between soluble and insoluble fiberWhy is f.pdf
What’s the difference between soluble and insoluble fiberWhy is f.pdf
seasonsnu
 

More from seasonsnu (20)

In anova, what is represented by the letter N a.) The sum of the .pdf
In anova, what is represented by the letter N a.) The sum of the .pdfIn anova, what is represented by the letter N a.) The sum of the .pdf
In anova, what is represented by the letter N a.) The sum of the .pdf
 
In a Davis U-tube experiment, you add a different strain of auxotroph.pdf
In a Davis U-tube experiment, you add a different strain of auxotroph.pdfIn a Davis U-tube experiment, you add a different strain of auxotroph.pdf
In a Davis U-tube experiment, you add a different strain of auxotroph.pdf
 
If HDL levels were given in the dataset as a continuous (quantitativ.pdf
If HDL levels were given in the dataset as a continuous (quantitativ.pdfIf HDL levels were given in the dataset as a continuous (quantitativ.pdf
If HDL levels were given in the dataset as a continuous (quantitativ.pdf
 
I dont really know what two factor analysis is All my study guid sa.pdf
I dont really know what two factor analysis is All my study guid sa.pdfI dont really know what two factor analysis is All my study guid sa.pdf
I dont really know what two factor analysis is All my study guid sa.pdf
 
During transcription, which of the following is NOT found associated .pdf
During transcription, which of the following is NOT found associated .pdfDuring transcription, which of the following is NOT found associated .pdf
During transcription, which of the following is NOT found associated .pdf
 
essay on elderly patients in rural areas having problems meeting hea.pdf
essay on elderly patients in rural areas having problems meeting hea.pdfessay on elderly patients in rural areas having problems meeting hea.pdf
essay on elderly patients in rural areas having problems meeting hea.pdf
 
Denatured protein has gone bad and should not be eaten has lost its.pdf
Denatured protein  has gone bad and should not be eaten  has lost its.pdfDenatured protein  has gone bad and should not be eaten  has lost its.pdf
Denatured protein has gone bad and should not be eaten has lost its.pdf
 
Define liquidity and why money is said to be the most liquid of all .pdf
Define liquidity and why money is said to be the most liquid of all .pdfDefine liquidity and why money is said to be the most liquid of all .pdf
Define liquidity and why money is said to be the most liquid of all .pdf
 
Compare and contrast eukaryotic and prokaryotic cells. Why do you th.pdf
Compare and contrast eukaryotic and prokaryotic cells. Why do you th.pdfCompare and contrast eukaryotic and prokaryotic cells. Why do you th.pdf
Compare and contrast eukaryotic and prokaryotic cells. Why do you th.pdf
 
CHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdf
CHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdfCHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdf
CHAP 13    OIS 3440-STATQuestionA chi-square test for goodness.pdf
 
bind two or more ions or molecules and tras Rot them ORRosi e divecti.pdf
bind two or more ions or molecules and tras Rot them ORRosi e divecti.pdfbind two or more ions or molecules and tras Rot them ORRosi e divecti.pdf
bind two or more ions or molecules and tras Rot them ORRosi e divecti.pdf
 
26. On July 1, Telstar Corporation declared a $1.00 per share cash d.pdf
26. On July 1, Telstar Corporation declared a $1.00 per share cash d.pdf26. On July 1, Telstar Corporation declared a $1.00 per share cash d.pdf
26. On July 1, Telstar Corporation declared a $1.00 per share cash d.pdf
 
write a research paper about happy family novel by Wendy lee ..pdf
write a research paper about happy family novel by Wendy lee ..pdfwrite a research paper about happy family novel by Wendy lee ..pdf
write a research paper about happy family novel by Wendy lee ..pdf
 
why is it important to establish patient ownership of healthcare rec.pdf
why is it important to establish patient ownership of healthcare rec.pdfwhy is it important to establish patient ownership of healthcare rec.pdf
why is it important to establish patient ownership of healthcare rec.pdf
 
Which of the following is true about mitotic recombinationA. It o.pdf
Which of the following is true about mitotic recombinationA. It o.pdfWhich of the following is true about mitotic recombinationA. It o.pdf
Which of the following is true about mitotic recombinationA. It o.pdf
 
Which of the following explains how someone can have the genotype fo.pdf
Which of the following explains how someone can have the genotype fo.pdfWhich of the following explains how someone can have the genotype fo.pdf
Which of the following explains how someone can have the genotype fo.pdf
 
Which intermolecular porcess primarly drives the formation of a bila.pdf
Which intermolecular porcess primarly drives the formation of a bila.pdfWhich intermolecular porcess primarly drives the formation of a bila.pdf
Which intermolecular porcess primarly drives the formation of a bila.pdf
 
Which of the following is an example of a translocation a chromosom.pdf
Which of the following is an example of a translocation  a chromosom.pdfWhich of the following is an example of a translocation  a chromosom.pdf
Which of the following is an example of a translocation a chromosom.pdf
 
What is simplicity and how does it bear on the acceptability of a sc.pdf
What is simplicity and how does it bear on the acceptability of a sc.pdfWhat is simplicity and how does it bear on the acceptability of a sc.pdf
What is simplicity and how does it bear on the acceptability of a sc.pdf
 
What’s the difference between soluble and insoluble fiberWhy is f.pdf
What’s the difference between soluble and insoluble fiberWhy is f.pdfWhat’s the difference between soluble and insoluble fiberWhy is f.pdf
What’s the difference between soluble and insoluble fiberWhy is f.pdf
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 

This is C# windows form , I am expected to have an Inventory Managem.pdf

  • 1. This is C# windows form , I am expected to have an Inventory Management Project. This is to include the following: arrays and collection processing, input validation and exception handling, date processing and calculations, output formats, great user experience including some graphics and maybe animation, PLUS all the default requirements such as good GUI layout, tabbing, Enter and Esc keys, object/control naming, and documentation! Solution #include int bubble(int*,int); void filewrite(); void avgmarks(); void fileprint(); void filesort(); void rollin(); int bubble(int x[],int n) { int hold,j,pass,i,switched = 1; for(pass = 0; pass < n-1 && switched == 1;pass++) { switched=0; for (j=0;jx[j+1]) { switched=1; hold = x[j]; x[j] = x[j+1]; x[j+1]=hold; } } return(0); } void filewrite() { int roll,ch,mark;
  • 2. char nam[50]; FILE *fp; clrscr(); fp = fopen("student.txt","a"); printf("ENTER ROLL NUMBER, NAME , MARKS "); ch =1; while(ch) { scanf("%d%s%d",&roll,&nam,&mark); fprintf(fp,"%d %s %d ",roll,nam,mark); printf(" press 1 to continue,0 to stop"); scanf("%d",&ch); } fclose(fp) ; } void fileprint() { int marks[100],rollno[100],x[100],i; char name[100][50]; FILE *fp; clrscr(); fp = fopen("student.txt","r"); i=0; printf("ROLLNO NAME MARK "); while(!feof(fp)) { fscanf(fp,"%d %s %d ",&rollno[i],&name[i],&marks[i]); printf(" %d %s %d ",rollno[i],name[i],marks[i]); i=i+1; } fclose(fp); printf(" PRESS ANY KEY"); getch(); } void filesort() { int marks[100],rollno[100],x[100],n,i,j;
  • 3. char name[100][50]; FILE *fp,*fm; fp = fopen("student.txt","r"); fm = fopen("marks.txt","w"); i=0; while(! feof(fp)) { fscanf(fp,"%d %s %d ",&rollno[i],&name[i],&marks[i]); x[i]= marks[i]; i=i+1; } n=i; bubble(x,n); for(i=0;i