0% found this document useful (0 votes)
448 views7 pages

A Project Report On: Computer Engineering

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 7

A PROJECT REPORT ON

“Implecet of stack using C’’

Submitted in partial fulfilment of the requirements of the award of degree


Of
DIPLOMA ENGINEERING
In
Computer Engineering

BY:-

1. Vedant Dattatray Jagtap


2. Sarthak Vaijinath Gore
3. Shuham Suresh Shinde
4. Shivraj Santosh Dasange

UNDER THE GUIDANCE:

Prof. M.K.Jadhav

SVERI’S
COLLEGE OF ENGINEERING (POLY).
PANDHARPUR 2020-21
1
CERTIFICATE

The project report entitled “Implecet of stack using C’’

Submitted by

1. Vedant Dattatray Jagtap


2. Sarthak Vaijinath Gore
3. Shubham Suresh Shinde
4. Shivraj Santosh Dasange

Is approved for the Diploma of Engineering in Information Technology from SVERI’S


College of Engineering (Polytechnic), Pandharpur.

Name of Guide Name of H.O.D


(Prof. M.K. Jadhav) (Prof. A.S. Bhatlavande)
Department of Computer Engineering Department of Computer Engineering
SVERI’S COE (Poly), Pandharpur. SVERI’S COE (Poly), Pandharpur.

Examiner Principal
(Prof. ) (Prof. N.D. Misal)

Date:
2
Place: Pandharpur

ACKNOWLEDGEMENT
I take this opportunity to express my sincere thanks and deep sense of gratitude to my guide,
Prof. M.K. Jadhav sir for his constant support, motivation, valuable guidance and immense help
during the entire course of this work. Without his constant encouragement, timely advice and
valuable discussion, it would have been difficult in completing this work. I would also like to
acknowledge Computer Engineering department who provided me the facilities for completion of the
project. We are thankful to him for sharing his experienced in research field with me and providing
constant motivation during entire project work.

Name of Student:-

1. Vedant Dattatray Jagtap


2. Sarthak Vijinath Gore
3. Shubham Suresh Shinde
4. Shivraj Santosh Dasange

3
“Implecet of stack using C’’

1.0 Rationale:

We had done this project of Implecet of stack help of ‘C’ language the whole project
is about to learn the techniques of Modular programs in the tabular and we learned
it. With the help of “While” loop statements we had done this with all our group
members and with the help of Turbo C++ software and Microsoft Word document
we had done this Project.

2.0 Aim/Benefits of the Micro-project:

From this project we had learn how to create a Implecet of stack using ‘C’ language. By
. using different types of codes. With the help of Modular programs we create the .
. .Implecet stack with help of mainly the programs we had done the Implecet stack.

3.0 Course Outcomes Achieved:

Develop C++ programs using Classes and Objects.


Develop C++ programs to perform file operation.

4
4.0 Literature Review:

Discuss the topic for project we have decided to generate registration form using C. But while
discussion their was another topic that is data security, So with that concept we started to design this project.
This project includes the data security as well as file handling concepts in this project. We have use class
concept for data security and ofstream and ifstream for handling the file concept. While searching their was
many project like this but their was not present one concept which we have included in this project that is
security. Which is we protect to our data.. Fstream.h is used for the file handling concept in the program.
String.h header file is used to string comparison in program.

5.0 Actual Methodology Followed:

#include<stdio.h>
void push(char element, char stack[], int *top, int stackSize){
 if(*top == -1){
  stack[stackSize - 1] = element;
  *top = stackSize - 1;
 }
 else if(*top == 0){
  printf("The stack is already full. \n");
 }
 else{
  stack[(*top) - 1] = element;
  (*top)--;
 }
}
void pop(char stack[], int *top, int stackSize){
 if(*top == -1){
   printf("The stack is empty. \n");
 }
 else{
  printf("Element popped: %c \n", stack[(*top)]);
  // If the element popped was the last element in the stack
  // then set top to -1 to show that the stack is empty
  if((*top) == stackSize - 1){
    (*top) = -1;
  }
  else{
    (*top)++;
  }
 }
}
int main() {
  int stackSize = 4;
  char stack[stackSize];
  // A negative index shows that the stack is empty
  int top = -1;
5
  push('a', stack, &top, stackSize);
  printf("Element on top: %c\n", stack[top]);
  push('b',stack, &top, stackSize);
  printf("Element on top: %c\n", stack[top]);
  pop(stack, &top, stackSize);
  printf("Element on top: %c\n", stack[top]);
  pop(stack, &top, stackSize);
  printf("Top: %d\n", top);
  pop(stack, &top, stackSize);
  return 0;
}

6.0 Actual Resource Used:

Sr.No Name of Recourse Specification Qty Remark


1 Laptop RAM: 8GB 1
Processor: i5
HDD: 1TB
6
Graphic: 2GB

2 Turbo C++ Version 3.2 1

7.0 Output of Micro-Project:

Element on top: a

Element on top: b
Element popped: b 
Element on top: a
Element popped: a 
Top: -1
The stack is empty. 
}

8.0 Skill Developed/Learning outcome of Micro-Project:

We have used class and object concept in this program. So we have developed the skills of
class and object. We have used fill processing also in this program that skill also we have developed
in this program. The concept of file handling we have understood very well.

9.0 Use of this Micro-Project:

No extra memory required to store the pointers.


Con of using an array:

The size of the stack is pre-set so it cannot increase or decrease.

You might also like