Dsu Micro Project Report
Dsu Micro Project Report
An array in C is a collection of items stored at contiguous memory locations and elements can be accessed
randomly using indices of an array. They are used to store similar type of elements as in the data type
must be the same for all elements. They can be used to store collection of primitive data types such as int,
float, double, char, etc of any particular type. To add to it, an array in C can store derived data types such
as the structures, pointers etc. we can use various operations on array such as :
a) Algorithm:
step1 :start
1)create
2)display
_case1:create
(print create array from input taken)
_case2:display
(print stored array)
_case3:Exit
(print exit the choice)
_case3:return to menu
(print exit the class and return to choice)
step7 :stop
b) Flowchart:
start
Choose destination
stop
c) Projects C Code:
#include<stdio.h>
#include<stdlib.h>
int a[100];
int n,t,val,i,m;
void create();
void display();
int main()
{
int choice;
do{
//Guide - MS.ROHINI BHADANE
//---------Micro-project by----------
//06.Vivek Suryawanshi
//05.Vedant lade
//33.Harshal Kapadi
//43.Dhiraj Patil
printf("_________________________________________________________________\n");
printf("\n\n--------AIRLINE RESERVATION SYSTEM-----------\n");
printf("_________________________________________________________________\
n");
printf("1.Researve seat\n");
printf("2.Display Researved seat Number\n");
printf("3.Exit\n");
printf("-----------------------");
printf("\nEnter your choice:\t");
scanf("%d",&choice);
switch(choice)
{
case 1: create();
break;
case 2:
display();
break;
case 3:
exit(0);
break;
default:
printf("\nInvalid choice:\n");
break;
}
}while(choice!=3);
}
int class;
void create()
{
do{
printf("Select Destination\n");
printf("1.Mumbai to Hongkong 2.Mumbai to Tokyo 3.Delhi to Dubai
4.Banglore to Beijing\n");
scanf("%d",&m);
printf(" choose class 1.Economy 2.Buiseness\n");
scanf("%d",&class);
printf("3.exit.\n");
switch(class)
{
exit(0);
break;
default:
printf("\nInvalid choice:\n");
break;
} }
while(class!=3);
void display()
{
int i;
printf("\nThe Reserved seats are:\n");
for(i=0;i<n;i++){
printf("%d\t",a[i]);
}
}
d) Output:
8.0 Skill Developed / Learning outcome of this Micro-Project:
We Learned various technical skills such as problem solving, developing a logic, coding in C language ,
debugging code, removing bugs, testing output and generating expected output as per problem definition.
Also, developed the soft skills such as leadership, working in a team, time management, presentation and
writing skills.