SlideShare a Scribd company logo
Course Project Presentation
Presented byPresented by Course InformationCourse Information
IKHTIAR KHAN SOHAN
ID: 151-15-8638
Section: L
Course Code: CSE123
Course Title: Programming
& Problem solving
Date of Submission: 09-08-2017
Calendar viewCalendar view
Course Project Presentation
INTRODUCTION
My project show you calendar of a year. This
calendar help to known as holyday of the month
and show historical days and other problem
help to people by this calendar.
2
Course Project Presentation
MOTIVATION
• This program is very useful for us cause
people can known about their important date.
• People know about historical day and holyday.
3
Course Project Presentation
Implementation Requirements
• This Application size is 31KB and the size of
code is 3KB. So, such amount of memory is
required from hard disk.
• RAM: Minimum 256MB.
• Mouse, Keyboard.
4
Course Project Presentation
Software Requirements
• Code Blocks
• Windows XP210
5
Course Project Presentation
Algorithms
• No Algorithm used.
6
Course Project Presentation
Demonstration
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int width = 80, year;//= 2017;
int cols, lead, gap;
const char *wdays[] = { "Su", "Mo", "Tu", "We", "Th",
"Fr", "Sa" };
struct months {
const char *name;
int days, start_wday, at;
} months[12] = {
{ "January", 31, 0, 0 },
{ "February", 28, 0, 0 },
{ "March", 31, 0, 0 },
{ "April", 30, 0, 0 },
{ "May", 31, 0, 0 },
{ "June", 30, 0, 0 },
{ "July", 31, 0, 0 },
{ "August", 31, 0, 0 },
{ "September", 30, 0, 0 },
{ "October", 31, 0, 0 },
{ "November", 30, 0, 0 },
{ "December", 31, 0, 0 }
};
7
void space(int n) { while (n-- > 0) putchar(' '); }
void init_months()
{
int i;
if ((!(year % 4) && (year % 100)) || !(year % 400))
months[1].days = 29;
year--;
months[0].start_wday
= (year * 365 + year/4 - year/100 + year/400 + 1) % 7;
for (i = 1; i < 12; i++)
months[i].start_wday =
(months[i-1].start_wday + months[i-1].days) % 7;
cols = (width + 2) / 22;
while (12 % cols) cols--;
gap = cols - 1 ? (width - 20 * cols) / (cols - 1) : 0;
if (gap > 4) gap = 4;
lead = (width - (20 + gap) * cols + gap + 1) / 2;
year++;
}
void print_row(int row)
{
int c, i, from = row * cols, to = from + cols;
Course Project Presentation
space(lead);
for (c = from; c < to; c++) {
i = strlen(months[c].name);
space((20 - i)/2);
printf("%s", months[c].name);
space(20 - i - (20 - i)/2 + ((c == to - 1) ? 0 : gap));
}
putchar('n');
space(lead);
for (c = from; c < to; c++) {
for (i = 0; i < 7; i++)
printf("%s%s", wdays[i], i == 6 ? "" : " ");
if (c < to - 1) space(gap);
else putchar('n');
}
while (1) {
for (c = from; c < to; c++)
if (months[c].at < months[c].days) break;
if (c == to) break;
space(lead);
for (c = from; c < to; c++) {
for (i = 0; i < months[c].start_wday; i++) space(3);
while(i++ < 7 && months[c].at < months[c].days) {
printf("%2d", ++months[c].at);
if (i < 7 || c < to - 1) putchar(' ');
}
8
if (i < 7 || c < to - 1) putchar(' ');
}
while (i++ <= 7 && c < to - 1) space(3);
if (c < to - 1) space(gap - 1);
months[c].start_wday = 0;
}
putchar('n');
}
putchar('n');
}
void print_year()
{
int row;
char buf[32];
sprintf("%dn",year);
space((width - strlen(buf)) / 2);
printf("%cnn",buf);
for (row = 0; row * cols < 12; row++)
print_row(row);
}
Course Project Presentation
int main(int c, char **v)
{
int i, year_set=0 ,hi;
scanf("%d",&hi);
hi=year;
for (i = 1; i < c; i++) {
if (!strcmp(v[i], "-w")) {
if (++i == c || (width = atoi(v[i])) < 20)
goto bail;
} else if (!year_set) {
if (!sscanf(v[i], "%d", &year) || year <= 0)
year=hi;
year_set = 1;
} else
goto bail;
}
init_months();
print_year();
return 0;
bail: fprintf(stderr, "bad argsnUsage: %s year [-w width (>= 20)]n", v[0]);
exit(1);
}
9
Course Project Presentation
Input
10
Course Project Presentation
Output
11
Course Project Presentation
Future Prospective
• It’s improvement possible.
12
Course Project Presentation
References
• Programming hub.
• Stack overflow.
• Google.
13
Course Project Presentation
Conclusion
We use calendar in our everyday life. This
calendar helps us known as holyday, historical
day and important work by this we prepared for
our some days ago.
14
Course Project Presentation
THANK YOU
15

More Related Content

What's hot

Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
avikdhupar
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
Himanshu Kaushik
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File
Rahul Chugh
 
UNIT CONVERTER
UNIT CONVERTERUNIT CONVERTER
UNIT CONVERTER
Nishita Kaptak
 
A project report on chat application
A project report on chat applicationA project report on chat application
A project report on chat application
Kumar Gaurav
 
Function in C program
Function in C programFunction in C program
Function in C program
Nurul Zakiah Zamri Tan
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
Kandarp Tiwari
 
Tic tac toe game with graphics presentation
Tic  tac  toe game with graphics presentationTic  tac  toe game with graphics presentation
Tic tac toe game with graphics presentation
Prionto Abdullah
 
Telephone directory using c language
Telephone directory using c languageTelephone directory using c language
Telephone directory using c language
Mauryasuraj98
 
Type Casting in C++
Type Casting in C++Type Casting in C++
Type Casting in C++
Sachin Sharma
 
Snake Game Flow Chart
Snake Game Flow ChartSnake Game Flow Chart
Snake Game Flow Chart
Muhammad Aziz
 
c++ lab manual
c++ lab manualc++ lab manual
c++ lab manual
Shrunkhala Wankhede
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
Ahmad Idrees
 
Computer Networks Lab File
Computer Networks Lab FileComputer Networks Lab File
Computer Networks Lab File
Kandarp Tiwari
 
Strings and pointers
Strings and pointersStrings and pointers
Strings and pointers
Gurpreet Singh Sond
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
Ashutosh Kumar
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
A c program of Phonebook application
A c program of Phonebook applicationA c program of Phonebook application
A c program of Phonebook application
svrohith 9
 
Data types in C
Data types in CData types in C
Data types in C
Tarun Sharma
 
Complete-Mini-Project-Report
Complete-Mini-Project-ReportComplete-Mini-Project-Report
Complete-Mini-Project-Report
Akshay Pratap Singh
 

What's hot (20)

Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
Introduction to c++
Introduction to c++Introduction to c++
Introduction to c++
 
Data Structures Using C Practical File
Data Structures Using C Practical File Data Structures Using C Practical File
Data Structures Using C Practical File
 
UNIT CONVERTER
UNIT CONVERTERUNIT CONVERTER
UNIT CONVERTER
 
A project report on chat application
A project report on chat applicationA project report on chat application
A project report on chat application
 
Function in C program
Function in C programFunction in C program
Function in C program
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
 
Tic tac toe game with graphics presentation
Tic  tac  toe game with graphics presentationTic  tac  toe game with graphics presentation
Tic tac toe game with graphics presentation
 
Telephone directory using c language
Telephone directory using c languageTelephone directory using c language
Telephone directory using c language
 
Type Casting in C++
Type Casting in C++Type Casting in C++
Type Casting in C++
 
Snake Game Flow Chart
Snake Game Flow ChartSnake Game Flow Chart
Snake Game Flow Chart
 
c++ lab manual
c++ lab manualc++ lab manual
c++ lab manual
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 
Computer Networks Lab File
Computer Networks Lab FileComputer Networks Lab File
Computer Networks Lab File
 
Strings and pointers
Strings and pointersStrings and pointers
Strings and pointers
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
 
C language ppt
C language pptC language ppt
C language ppt
 
A c program of Phonebook application
A c program of Phonebook applicationA c program of Phonebook application
A c program of Phonebook application
 
Data types in C
Data types in CData types in C
Data types in C
 
Complete-Mini-Project-Report
Complete-Mini-Project-ReportComplete-Mini-Project-Report
Complete-Mini-Project-Report
 

Similar to Project presentation(View calender)

C programming & data structure [arrays & pointers]
C programming & data structure   [arrays & pointers]C programming & data structure   [arrays & pointers]
C programming & data structure [arrays & pointers]
MomenMostafa
 
algorithm design file
algorithm design filealgorithm design file
algorithm design file
suraj kumar
 
8 arrays and pointers
8  arrays and pointers8  arrays and pointers
8 arrays and pointers
MomenMostafa
 
DSC program.pdf
DSC program.pdfDSC program.pdf
DSC program.pdf
Prof. Dr. K. Adisesha
 
SessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTimeSessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTime
Hellen Gakuruh
 
Baitap tkw
Baitap tkwBaitap tkw
Baitap tkw
nguyenquy2101
 
Ch7
Ch7Ch7
Ch7
Ch7Ch7
Need to make a Java program which calculates the number of days betw.pdf
Need to make a Java program which calculates the number of days betw.pdfNeed to make a Java program which calculates the number of days betw.pdf
Need to make a Java program which calculates the number of days betw.pdf
anjandavid
 
17 ruby date time
17 ruby date time17 ruby date time
17 ruby date time
Walker Maidana
 
Vcs22
Vcs22Vcs22
Lab manual operating system [cs 502 rgpv] (usefulsearch.org) (useful search)
Lab manual operating system [cs 502 rgpv] (usefulsearch.org)  (useful search)Lab manual operating system [cs 502 rgpv] (usefulsearch.org)  (useful search)
Lab manual operating system [cs 502 rgpv] (usefulsearch.org) (useful search)
Make Mannan
 
COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation
Hemantha Kulathilake
 
Date.h#ifndef DateFormat#define DateFormat#includetime.h.pdf
Date.h#ifndef DateFormat#define DateFormat#includetime.h.pdfDate.h#ifndef DateFormat#define DateFormat#includetime.h.pdf
Date.h#ifndef DateFormat#define DateFormat#includetime.h.pdf
angelfragranc
 
Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16
Indira Gnadhi National Open University (IGNOU)
 
Zoro123456789123456789123456789123456789
Zoro123456789123456789123456789123456789Zoro123456789123456789123456789123456789
Zoro123456789123456789123456789123456789
Ghh
 
labb123456789123456789123456789123456789
labb123456789123456789123456789123456789labb123456789123456789123456789123456789
labb123456789123456789123456789123456789
Ghh
 
An Overview Of Basic Planning &amp; Scheduling Concepts
An Overview Of Basic Planning &amp; Scheduling ConceptsAn Overview Of Basic Planning &amp; Scheduling Concepts
An Overview Of Basic Planning &amp; Scheduling Concepts
Shankar Ganesh Radhakrishnan
 
The Great and Mighty C++
The Great and Mighty C++The Great and Mighty C++
The Great and Mighty C++
Andrey Karpov
 
Computer science project work on C++
Computer science project work on C++Computer science project work on C++
Computer science project work on C++
NARESH KUMAR
 

Similar to Project presentation(View calender) (20)

C programming & data structure [arrays & pointers]
C programming & data structure   [arrays & pointers]C programming & data structure   [arrays & pointers]
C programming & data structure [arrays & pointers]
 
algorithm design file
algorithm design filealgorithm design file
algorithm design file
 
8 arrays and pointers
8  arrays and pointers8  arrays and pointers
8 arrays and pointers
 
DSC program.pdf
DSC program.pdfDSC program.pdf
DSC program.pdf
 
SessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTimeSessionSeven_WorkingWithDatesandTime
SessionSeven_WorkingWithDatesandTime
 
Baitap tkw
Baitap tkwBaitap tkw
Baitap tkw
 
Ch7
Ch7Ch7
Ch7
 
Ch7
Ch7Ch7
Ch7
 
Need to make a Java program which calculates the number of days betw.pdf
Need to make a Java program which calculates the number of days betw.pdfNeed to make a Java program which calculates the number of days betw.pdf
Need to make a Java program which calculates the number of days betw.pdf
 
17 ruby date time
17 ruby date time17 ruby date time
17 ruby date time
 
Vcs22
Vcs22Vcs22
Vcs22
 
Lab manual operating system [cs 502 rgpv] (usefulsearch.org) (useful search)
Lab manual operating system [cs 502 rgpv] (usefulsearch.org)  (useful search)Lab manual operating system [cs 502 rgpv] (usefulsearch.org)  (useful search)
Lab manual operating system [cs 502 rgpv] (usefulsearch.org) (useful search)
 
COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation
 
Date.h#ifndef DateFormat#define DateFormat#includetime.h.pdf
Date.h#ifndef DateFormat#define DateFormat#includetime.h.pdfDate.h#ifndef DateFormat#define DateFormat#includetime.h.pdf
Date.h#ifndef DateFormat#define DateFormat#includetime.h.pdf
 
Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16
 
Zoro123456789123456789123456789123456789
Zoro123456789123456789123456789123456789Zoro123456789123456789123456789123456789
Zoro123456789123456789123456789123456789
 
labb123456789123456789123456789123456789
labb123456789123456789123456789123456789labb123456789123456789123456789123456789
labb123456789123456789123456789123456789
 
An Overview Of Basic Planning &amp; Scheduling Concepts
An Overview Of Basic Planning &amp; Scheduling ConceptsAn Overview Of Basic Planning &amp; Scheduling Concepts
An Overview Of Basic Planning &amp; Scheduling Concepts
 
The Great and Mighty C++
The Great and Mighty C++The Great and Mighty C++
The Great and Mighty C++
 
Computer science project work on C++
Computer science project work on C++Computer science project work on C++
Computer science project work on C++
 

More from Ikhtiar Khan Sohan

About Robotics
About RoboticsAbout Robotics
About Robotics
Ikhtiar Khan Sohan
 
Copy propagation
Copy propagationCopy propagation
Copy propagation
Ikhtiar Khan Sohan
 
GDP of Bangladesh
GDP of BangladeshGDP of Bangladesh
GDP of Bangladesh
Ikhtiar Khan Sohan
 
Modern Network Security Issue and Challenge
Modern Network Security Issue and ChallengeModern Network Security Issue and Challenge
Modern Network Security Issue and Challenge
Ikhtiar Khan Sohan
 
About Google(Presentation)
About Google(Presentation)About Google(Presentation)
About Google(Presentation)
Ikhtiar Khan Sohan
 
Students Database Management System
Students Database Management SystemStudents Database Management System
Students Database Management System
Ikhtiar Khan Sohan
 
Presentation About Sophia the robot
Presentation About Sophia the robotPresentation About Sophia the robot
Presentation About Sophia the robot
Ikhtiar Khan Sohan
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
Ikhtiar Khan Sohan
 
Presentation(Cyber crime & security)
Presentation(Cyber crime & security)Presentation(Cyber crime & security)
Presentation(Cyber crime & security)
Ikhtiar Khan Sohan
 
Presentation(Drones)
Presentation(Drones)Presentation(Drones)
Presentation(Drones)
Ikhtiar Khan Sohan
 
Presentation(About Google)
Presentation(About Google)Presentation(About Google)
Presentation(About Google)
Ikhtiar Khan Sohan
 
Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)
Ikhtiar Khan Sohan
 
Project proposal presentation(blood bank management system)
Project proposal presentation(blood bank management system)Project proposal presentation(blood bank management system)
Project proposal presentation(blood bank management system)
Ikhtiar Khan Sohan
 
Project proposal presentation(tic tac-toe-game)
Project proposal presentation(tic tac-toe-game)Project proposal presentation(tic tac-toe-game)
Project proposal presentation(tic tac-toe-game)
Ikhtiar Khan Sohan
 
Project proposal presentation(bkash)
Project proposal presentation(bkash)Project proposal presentation(bkash)
Project proposal presentation(bkash)
Ikhtiar Khan Sohan
 
Assignment of Robotics
Assignment of RoboticsAssignment of Robotics
Assignment of Robotics
Ikhtiar Khan Sohan
 
CV Writting
CV WrittingCV Writting
CV Writting
Ikhtiar Khan Sohan
 
Assignment of Movie Review(Avatar)
Assignment of Movie Review(Avatar)Assignment of Movie Review(Avatar)
Assignment of Movie Review(Avatar)
Ikhtiar Khan Sohan
 
Assignment of Movie Review(PK)
Assignment of Movie Review(PK)Assignment of Movie Review(PK)
Assignment of Movie Review(PK)
Ikhtiar Khan Sohan
 

More from Ikhtiar Khan Sohan (19)

About Robotics
About RoboticsAbout Robotics
About Robotics
 
Copy propagation
Copy propagationCopy propagation
Copy propagation
 
GDP of Bangladesh
GDP of BangladeshGDP of Bangladesh
GDP of Bangladesh
 
Modern Network Security Issue and Challenge
Modern Network Security Issue and ChallengeModern Network Security Issue and Challenge
Modern Network Security Issue and Challenge
 
About Google(Presentation)
About Google(Presentation)About Google(Presentation)
About Google(Presentation)
 
Students Database Management System
Students Database Management SystemStudents Database Management System
Students Database Management System
 
Presentation About Sophia the robot
Presentation About Sophia the robotPresentation About Sophia the robot
Presentation About Sophia the robot
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Presentation(Cyber crime & security)
Presentation(Cyber crime & security)Presentation(Cyber crime & security)
Presentation(Cyber crime & security)
 
Presentation(Drones)
Presentation(Drones)Presentation(Drones)
Presentation(Drones)
 
Presentation(About Google)
Presentation(About Google)Presentation(About Google)
Presentation(About Google)
 
Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)Project proposal presentation(Quiz game)
Project proposal presentation(Quiz game)
 
Project proposal presentation(blood bank management system)
Project proposal presentation(blood bank management system)Project proposal presentation(blood bank management system)
Project proposal presentation(blood bank management system)
 
Project proposal presentation(tic tac-toe-game)
Project proposal presentation(tic tac-toe-game)Project proposal presentation(tic tac-toe-game)
Project proposal presentation(tic tac-toe-game)
 
Project proposal presentation(bkash)
Project proposal presentation(bkash)Project proposal presentation(bkash)
Project proposal presentation(bkash)
 
Assignment of Robotics
Assignment of RoboticsAssignment of Robotics
Assignment of Robotics
 
CV Writting
CV WrittingCV Writting
CV Writting
 
Assignment of Movie Review(Avatar)
Assignment of Movie Review(Avatar)Assignment of Movie Review(Avatar)
Assignment of Movie Review(Avatar)
 
Assignment of Movie Review(PK)
Assignment of Movie Review(PK)Assignment of Movie Review(PK)
Assignment of Movie Review(PK)
 

Recently uploaded

How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 

Recently uploaded (20)

How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 

Project presentation(View calender)

  • 1. Course Project Presentation Presented byPresented by Course InformationCourse Information IKHTIAR KHAN SOHAN ID: 151-15-8638 Section: L Course Code: CSE123 Course Title: Programming & Problem solving Date of Submission: 09-08-2017 Calendar viewCalendar view
  • 2. Course Project Presentation INTRODUCTION My project show you calendar of a year. This calendar help to known as holyday of the month and show historical days and other problem help to people by this calendar. 2
  • 3. Course Project Presentation MOTIVATION • This program is very useful for us cause people can known about their important date. • People know about historical day and holyday. 3
  • 4. Course Project Presentation Implementation Requirements • This Application size is 31KB and the size of code is 3KB. So, such amount of memory is required from hard disk. • RAM: Minimum 256MB. • Mouse, Keyboard. 4
  • 5. Course Project Presentation Software Requirements • Code Blocks • Windows XP210 5
  • 7. Course Project Presentation Demonstration #include <stdio.h> #include <stdlib.h> #include <string.h> int width = 80, year;//= 2017; int cols, lead, gap; const char *wdays[] = { "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" }; struct months { const char *name; int days, start_wday, at; } months[12] = { { "January", 31, 0, 0 }, { "February", 28, 0, 0 }, { "March", 31, 0, 0 }, { "April", 30, 0, 0 }, { "May", 31, 0, 0 }, { "June", 30, 0, 0 }, { "July", 31, 0, 0 }, { "August", 31, 0, 0 }, { "September", 30, 0, 0 }, { "October", 31, 0, 0 }, { "November", 30, 0, 0 }, { "December", 31, 0, 0 } }; 7 void space(int n) { while (n-- > 0) putchar(' '); } void init_months() { int i; if ((!(year % 4) && (year % 100)) || !(year % 400)) months[1].days = 29; year--; months[0].start_wday = (year * 365 + year/4 - year/100 + year/400 + 1) % 7; for (i = 1; i < 12; i++) months[i].start_wday = (months[i-1].start_wday + months[i-1].days) % 7; cols = (width + 2) / 22; while (12 % cols) cols--; gap = cols - 1 ? (width - 20 * cols) / (cols - 1) : 0; if (gap > 4) gap = 4; lead = (width - (20 + gap) * cols + gap + 1) / 2; year++; } void print_row(int row) { int c, i, from = row * cols, to = from + cols;
  • 8. Course Project Presentation space(lead); for (c = from; c < to; c++) { i = strlen(months[c].name); space((20 - i)/2); printf("%s", months[c].name); space(20 - i - (20 - i)/2 + ((c == to - 1) ? 0 : gap)); } putchar('n'); space(lead); for (c = from; c < to; c++) { for (i = 0; i < 7; i++) printf("%s%s", wdays[i], i == 6 ? "" : " "); if (c < to - 1) space(gap); else putchar('n'); } while (1) { for (c = from; c < to; c++) if (months[c].at < months[c].days) break; if (c == to) break; space(lead); for (c = from; c < to; c++) { for (i = 0; i < months[c].start_wday; i++) space(3); while(i++ < 7 && months[c].at < months[c].days) { printf("%2d", ++months[c].at); if (i < 7 || c < to - 1) putchar(' '); } 8 if (i < 7 || c < to - 1) putchar(' '); } while (i++ <= 7 && c < to - 1) space(3); if (c < to - 1) space(gap - 1); months[c].start_wday = 0; } putchar('n'); } putchar('n'); } void print_year() { int row; char buf[32]; sprintf("%dn",year); space((width - strlen(buf)) / 2); printf("%cnn",buf); for (row = 0; row * cols < 12; row++) print_row(row); }
  • 9. Course Project Presentation int main(int c, char **v) { int i, year_set=0 ,hi; scanf("%d",&hi); hi=year; for (i = 1; i < c; i++) { if (!strcmp(v[i], "-w")) { if (++i == c || (width = atoi(v[i])) < 20) goto bail; } else if (!year_set) { if (!sscanf(v[i], "%d", &year) || year <= 0) year=hi; year_set = 1; } else goto bail; } init_months(); print_year(); return 0; bail: fprintf(stderr, "bad argsnUsage: %s year [-w width (>= 20)]n", v[0]); exit(1); } 9
  • 12. Course Project Presentation Future Prospective • It’s improvement possible. 12
  • 13. Course Project Presentation References • Programming hub. • Stack overflow. • Google. 13
  • 14. Course Project Presentation Conclusion We use calendar in our everyday life. This calendar helps us known as holyday, historical day and important work by this we prepared for our some days ago. 14