0% found this document useful (0 votes)
13 views10 pages

Programming Final Project

Uploaded by

Nur Nabi Rashed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views10 pages

Programming Final Project

Uploaded by

Nur Nabi Rashed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Computer Programming Project

Project Name : Hangman

Subject : Computer
Programming
Subject Code: CSE-1252
Batch: Spring_2023
Agenda:
1. Introducing group members
2. How the game work
3. Syntax of Header Files
4. Function prototypes
5. Main body
6. Output
7. Conclusion
Introduction of Group members::
1. Bipul Das (23112091)
2. Kazi Sohel Hossain (23112107)
3. Mohammed Nur Nabi Rashed (23112082)
4. Ismot Jahan Eva (23112086)
5. Golam Charwer (23112081)
How the Game Work:

 This is an interested game we made. The name of the game is Hangman. We


used some guess word in main body. As a result when we enter any letter then
it will say the guess is correct or not. After 6 incorrect attempt the game will
over. If guess word match it will show “Congratulation! You have guessed the
word: XXXX”. And it will go for next word. For every right guess the
hangman body part will increase.
Syntax of Header Files

 #include <stdio.h>: It is used to perform input and output operations


using functions like scanf(), printf(), etc.
 #include <string.h>: It is used to perform various functionalities
related to string manipulation like strlen(), strcmp(), strcpy(), size(),
etc.
 #include <stdlib.h>: The stdlib.h header defines four
variable types, several macros, and various functions
for performing general functions.
 #include <time.h>: It is used to perform functions related to date()
and time() like setdate() and getdate(). It is also used to modify the
system date
and get the CPU time respectively
 #include <ctype.h>: It contains function prototypes for functions that
test characters for certain properties, and also function prototypes
for functions that can be used to convert uppercase letters to
lowercase letters and vice versa.
Function prototypes
:

The reason to define the function before main is to avoid


the function declaration that would be necessary if you
define the function after main. It is common for C modules
to be coded in this style, that is: functions defined in
dependency order, in order to avoid the need for
declarations of functions that are local in scope
Main body:
The int main() defines the entry or the starting point of the Cprogram code. Here int is a
keyword that tells us about the integer data type. So when one runs the file on their local
computer, the operating system executes the main () function.
Functions in C are the basic building blocks of a C program. A function is a set of statements
enclosed within curly brackets ({}) that take inputs, do the computation, and provide the
resultant output. You can call a function multiple times, thereby allowing reusability and
modularity in C programming.
Output:

 where we enter any letter. it will show the guess letter is correct or not. If guess word
match it will show “Congratulation! You have guessed the word: XXXX”. And it will go
for next word. For every right guess the hangman body part will increase.
Conclusio
n:
Over all the game is so much interesting and enjoyable. We have
learned more about C programming.

You might also like