BCP Micro Project
BCP Micro Project
Micro project
DIVISION : C034
ENROLLMENT. : 226408307010
ENROLLMENT. : 226408307009
system.
INTRODUCTION
C is a general-purpose programming language that is
extremely popular, simple, and flexible to use. It is a
structured programming language that is machine-
independent and extensively used to write various
applications, Operating Systems like Windows, and many
other complex programs like Oracle database, Git, Python
interpreter, and more.
It is said that ‘C’ is a god’s programming language. One can
say, C is a base for the programming. If you know ‘C,’ you
can easily grasp the knowledge of the other programming
languages that uses the concept of ‘C’
It is essential to have a background in computer memory
mechanisms because it is an important aspect when dealing
with the C programming language.
The base or father of programming languages is ‘ALGOL.’ It
was first introduced in 1960. ‘ALGOL’ was used on a large
basis in European countries. ‘ALGOL’ introduced the concept
of structured programming to the developer community. In
1967, a new computer programming language was
announced called as ‘BCPL’ which stands for Basic
Combined Programming Language. BCPL was designed and
developed by Martin Richards, especially for writing system
software. This was the era of programming languages. Just
after three years, in 1970 a new programming language
called ‘B’ was introduced by Ken Thompson that contained
Clang compiler
MinGW compiler (Minimalist GNU for Windows)
Portable ‘C’ compiler
Turbo C
#include<stdio.h>
#define TRUE 1
#define FALSE 0
int days_in_month[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
char *months[]=
" ",
"\n\n\nJanuary",
"\n\n\nFebruary",
"\n\n\nMarch",
"\n\n\nApril",
"\n\n\nMay",
"\n\n\nJune",
"\n\n\nJuly",
"\n\n\nAugust",
"\n\n\nSeptember",
"\n\n\nOctober",
"\n\n\nNovember",
"\n\n\nDecember"
};
int inputyear(void)
int year;
scanf("%d", &year);
return year;
int daycode;
return daycode;
days_in_month[2] = 29;
return TRUE;
else
days_in_month[2] = 28;
return FALSE;
printf("%s", months[month]);
printf(" ");
printf("%2d", day );
printf(" " );
else
printf("\n " );
int main(void)
year = inputyear();
daycode = determinedaycode(year);
determineleapyear(year);
calendar(year, daycode);
printf("\n");
Output
Thank you