SlideShare ist ein Scribd-Unternehmen logo
1 von 10
2013

Project Report
Converter
(C - Language Program)
A brief report of our project “Converter” written in
C Language.

Submitted to:

Miss Farah Nawaz
Department of Computer Science
Newports Institute of Communications and Economics
Submitted by:

Zuhaib Ali (NI-S13-BS-040001)
Muhammad Shoaib (NI-F13-BS-040012)
Course:

Programming Techniques 1
Fall – 2013
Newports Institute of Communication and Economics
Project Report

Table of Contents
Acknowledgements................................................................................................................................. 1
Introduction ............................................................................................................................................ 1
Conversations ......................................................................................................................................... 1
Programming .......................................................................................................................................... 2
Header file........................................................................................................................................... 2
Switch case .......................................................................................................................................... 2
If- else statement ................................................................................................................................ 3
Custom function.................................................................................................................................. 3
Temperature ........................................................................................................................................... 4
Formulas ............................................................................................................................................. 4
Result .................................................................................................................................................. 5
Example...................................................................................................................................... 5
Time ........................................................................................................................................................ 5
Formulas ............................................................................................................................................. 6
Result .................................................................................................................................................. 6
Example...................................................................................................................................... 6
Length ..................................................................................................................................................... 6
Formulas ............................................................................................................................................. 7
Result .................................................................................................................................................. 7
Example...................................................................................................................................... 7
Flow Chart of Converter.......................................................................................................................... 8

Zuhaib Ali, Muhammad Shoaib

Page ii
Newports Institute of Communication and Economics
Project Report

Acknowledgements
The whole praise is to Almighty Allah, creator of this universe, who made us
the super creature with great knowledge. We, Zuhaib Ali, Muhammad Shoaib,
as a group of student of Newports Institute of Communication and Economics,
pays great thanks to our teacher Miss Farah Nawaz, who has given us the
golden opportunity to do this wonderful project, that helped us in doing a lot
of research and we came to know about so many new things and ideas.
In last but not the least, we would like to thank our parents and friends who
prayed for our success and encouraged us during this research period and
supporting us throughout our lives.

Introduction
During the fall 2013 semester, our teacher told us to create a program in Turbo
C Compiler using C Language. We decide to create a Converter that can
convert Temperature, Time and Length. Because in creating such a program we
can learn many new techniques about how to make program.
After we complete the program, now we really know many things that we
don’t know previous.

Conversations
In our program we have give three physical quantities to be converter from its
one unit to another. These physical quantities are listed below.


Temperature



Time



Length

Zuhaib Ali, Muhammad Shoaib

Page 1
Newports Institute of Communication and Economics
Project Report

Programming
In this section we will describe the program in programming aspect. Like what
is the technique working behind the program? And how the program actually
works?

Header file
In this program we have included only one header file that is Stdio.h.

Stdio.h file is the name of the standard library definition file for all Standard
Input, Output.

Switch case
We used switch case statement to make decisions or choices based on the
value of a conditional expression and specified cases.

Zuhaib Ali, Muhammad Shoaib

Page 2
Newports Institute of Communication and Economics
Project Report

If- else statement
Now we have used if-else statement the relational operators for making
comparisons, The if-else statement is used to express decisions,
expression

true Statement1
Next statement

If expression evaluates to false, Statement2 that follows the else keyword is
executed, and the program continues with Next_statement

Custom function
We have created 11 custom functions in our program.


Temperature
o Celsius to all
o Fahrenheit to all
o Kelvin to all



Time
o Day to all
o Hour to all
o Minute to all
o Second to all



Length
o Centimeter to all
o Foot to all
o Inch to all
o Meter to all

Zuhaib Ali, Muhammad Shoaib

Page 3
Newports Institute of Communication and Economics
Project Report

Temperature
Temperature is most common physical quantity; it is use to measure how of
hot or cold an object is. It may be measure in any of various units such as
Celsius, Fahrenheit, Kelvin, Rankine, Delisle, Newton, etc. We have given three
frequent used units in our program to converter from one to both others.
These units are listed below


Celsius



Fahrenheit



Kelvin

Formulas
The formulas used for temperature conversations in this program are as given
in below table.
From
Temperature
Fahrenheit

Kelvin

Celsius

=

(Fahrenheit-32)/1.8

Kelvin-273.15

Fahrenheit

Celsius*1.8

=

(Kelvin*1.8)-459.67

Kelvin

To

Celsius

Celsius+273.15

(Fahrenheit+459.67)/1.8

=

Zuhaib Ali, Muhammad Shoaib

Page 4
Newports Institute of Communication and Economics
Project Report

Result
After selecting the input unit program the program ask to enter temperature in
selected unit and calculate the result in other units and print it.
Example

Time
Time is another common physical quantity; the indefinite continued progress
of existence and events in the past, present, and future regarded as a
whole.Time is measured in hours and minute’sseconds, days, weeks, years,
decay, etc. We have given four units in our program to converter from one to
other three units. These units are listed below


Days



Hours



Minutes



Seconds

Zuhaib Ali, Muhammad Shoaib

Page 5
Newports Institute of Communication and Economics
Project Report

Formulas
The formulas used for time conversations in this program are as given in below
table.
From
Time
Hours

Minutes

Seconds

Days

=

Hours/24

Minutes/60/24

Seconds/60/60/24

Hours

Days*24

=

Minutes/60

Seconds/60/60

Minutes

Days*24*60

Hours*60

=

Seconds/60

Seconds

Days*24*60*60

Hours*60*60

Minutes*60

=

To

Days

Result
After selecting the input unit program the program ask to enter time in
selected unit and calculate the result in other units and print it.
Example

Length
Length is also another common physical quantity; that is used to measure
distance between two points.It is measured in foot, inch, kilometer, mile,
meter, millimeter, yard, etc. We have given four units in our program to
converter from one to both others. These units are listed below


Centimeter

Zuhaib Ali, Muhammad Shoaib

Page 6
Newports Institute of Communication and Economics
Project Report



Foot



Inch



Meter

Formulas
The formulas used for Length conversations in this program are as given in
below table.
From
Length
Foot

Inch

Meter

Centimeter

=

Foot*30.48

Inch/0.3937

Meter*100

Foot

Centimeter*0.033

=

Inch/12

Meter/0.3048

Inch

Centimeter*0.398

Foot*12

=

Meter/0.0254

Meter

Centimeter*100

Foot*0.3048

Inch/39.37

=

To

Centimeter

Result
After selecting the input unit program the program ask to enter Length in
selected unit and calculate the result in other units and print it.
Example

Zuhaib Ali, Muhammad Shoaib

Page 7
Newports Institute of Communication and Economics
Project Report

Flow Chart of Converter

Zuhaib Ali, Muhammad Shoaib

Page 8

Weitere ähnliche Inhalte

Was ist angesagt?

evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating systemAmir Khan
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader ExplainedAdarsh Kr Sinha
 
Calculator using Java
Calculator using JavaCalculator using Java
Calculator using JavaGarvit Anand
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
dot net technology
dot net technologydot net technology
dot net technologyImran Khan
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for universitySheikh Monirul Hasan
 
Training report of C language
Training report of C languageTraining report of C language
Training report of C languageShashank Kapoor
 
Loaders ( system programming )
Loaders ( system programming ) Loaders ( system programming )
Loaders ( system programming ) Adarsh Patel
 
Telephone directory in c
Telephone directory in cTelephone directory in c
Telephone directory in cUpendra Sengar
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To DotnetSAMIR BHOGAYTA
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C ProgrammingQazi Shahzad Ali
 
Macro and Preprocessor in c programming
 Macro and  Preprocessor in c programming Macro and  Preprocessor in c programming
Macro and Preprocessor in c programmingProfSonaliGholveDoif
 
.net CLR
.net CLR.net CLR
.net CLRDevTalk
 
Computer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module iComputer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module iAjit Nayak
 
Windows programming ppt
Windows programming pptWindows programming ppt
Windows programming pptSAMIR CHANDRA
 

Was ist angesagt? (20)

evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating system
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader Explained
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Calculator using Java
Calculator using JavaCalculator using Java
Calculator using Java
 
Presentation on C programming language
Presentation on C programming languagePresentation on C programming language
Presentation on C programming language
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
dot net technology
dot net technologydot net technology
dot net technology
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for university
 
Training report of C language
Training report of C languageTraining report of C language
Training report of C language
 
Loaders ( system programming )
Loaders ( system programming ) Loaders ( system programming )
Loaders ( system programming )
 
C language ppt
C language pptC language ppt
C language ppt
 
Telephone directory in c
Telephone directory in cTelephone directory in c
Telephone directory in c
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To Dotnet
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
 
Macro and Preprocessor in c programming
 Macro and  Preprocessor in c programming Macro and  Preprocessor in c programming
Macro and Preprocessor in c programming
 
Java Calculator project
Java Calculator projectJava Calculator project
Java Calculator project
 
.net CLR
.net CLR.net CLR
.net CLR
 
Computer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module iComputer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module i
 
Windows programming ppt
Windows programming pptWindows programming ppt
Windows programming ppt
 

Andere mochten auch

C language mini project By Arbab Ahmed
C language mini project By Arbab AhmedC language mini project By Arbab Ahmed
C language mini project By Arbab AhmedArbab Ahmed
 
Random Quiz Maker in C Language Project Slide
Random Quiz Maker in C Language Project SlideRandom Quiz Maker in C Language Project Slide
Random Quiz Maker in C Language Project SlideRaiyad Raad
 
C programming project by navin thapa
C programming project by navin thapaC programming project by navin thapa
C programming project by navin thapaNavinthp
 
Burden game synopsis
Burden game synopsisBurden game synopsis
Burden game synopsisZak Warren
 
Game genre and synopsis
Game genre and synopsisGame genre and synopsis
Game genre and synopsisLewisB2013
 
Task 2 – game genre and synopsis
Task 2 – game genre and synopsisTask 2 – game genre and synopsis
Task 2 – game genre and synopsisBenWhite101
 
Profile Game C-NOW - ABCD
Profile Game C-NOW - ABCDProfile Game C-NOW - ABCD
Profile Game C-NOW - ABCDsatumeja
 
Project Synopsis
Project SynopsisProject Synopsis
Project Synopsisguest1ebb7a
 
Synopsis or minor project ppt's (2)
Synopsis or minor project ppt's (2)Synopsis or minor project ppt's (2)
Synopsis or minor project ppt's (2)sunil paswan
 
Snake game implementation in c
Snake game implementation in cSnake game implementation in c
Snake game implementation in cUpendra Sengar
 
Application of Graphene in electronics
Application of Graphene in electronicsApplication of Graphene in electronics
Application of Graphene in electronicsChinmay Chepurwar
 
Project synopsis
Project synopsisProject synopsis
Project synopsisgirija12345
 
First game using c language
First game using c languageFirst game using c language
First game using c languageSaurabh Khetan
 
Sample project-synopsis
Sample project-synopsisSample project-synopsis
Sample project-synopsisSheshank Priya
 

Andere mochten auch (18)

C language mini project By Arbab Ahmed
C language mini project By Arbab AhmedC language mini project By Arbab Ahmed
C language mini project By Arbab Ahmed
 
Random Quiz Maker in C Language Project Slide
Random Quiz Maker in C Language Project SlideRandom Quiz Maker in C Language Project Slide
Random Quiz Maker in C Language Project Slide
 
C programming project by navin thapa
C programming project by navin thapaC programming project by navin thapa
C programming project by navin thapa
 
Ha2 game synopsis
Ha2 game synopsisHa2 game synopsis
Ha2 game synopsis
 
Burden game synopsis
Burden game synopsisBurden game synopsis
Burden game synopsis
 
Game genre and synopsis
Game genre and synopsisGame genre and synopsis
Game genre and synopsis
 
Task 2 – game genre and synopsis
Task 2 – game genre and synopsisTask 2 – game genre and synopsis
Task 2 – game genre and synopsis
 
Game synopsis
Game synopsisGame synopsis
Game synopsis
 
Profile Game C-NOW - ABCD
Profile Game C-NOW - ABCDProfile Game C-NOW - ABCD
Profile Game C-NOW - ABCD
 
Project Synopsis
Project SynopsisProject Synopsis
Project Synopsis
 
Synopsis or minor project ppt's (2)
Synopsis or minor project ppt's (2)Synopsis or minor project ppt's (2)
Synopsis or minor project ppt's (2)
 
Snake game implementation in c
Snake game implementation in cSnake game implementation in c
Snake game implementation in c
 
Synthesis of graphene
Synthesis of grapheneSynthesis of graphene
Synthesis of graphene
 
Application of Graphene in electronics
Application of Graphene in electronicsApplication of Graphene in electronics
Application of Graphene in electronics
 
Project synopsis
Project synopsisProject synopsis
Project synopsis
 
Project report
Project reportProject report
Project report
 
First game using c language
First game using c languageFirst game using c language
First game using c language
 
Sample project-synopsis
Sample project-synopsisSample project-synopsis
Sample project-synopsis
 

Ähnlich wie Converter - C- Language Program

Contact management system
Contact management systemContact management system
Contact management systemSHARDA SHARAN
 
Project Scope StatementProject NameStudent NameDateI.docx
Project Scope StatementProject NameStudent NameDateI.docxProject Scope StatementProject NameStudent NameDateI.docx
Project Scope StatementProject NameStudent NameDateI.docxwkyra78
 
Cs 568 Spring 10 Lecture 5 Estimation
Cs 568 Spring 10  Lecture 5 EstimationCs 568 Spring 10  Lecture 5 Estimation
Cs 568 Spring 10 Lecture 5 EstimationLawrence Bernstein
 
Use case point ( Software Estimation Technique)
Use case point ( Software Estimation Technique)Use case point ( Software Estimation Technique)
Use case point ( Software Estimation Technique)Punjab University
 
Exp 02-COCOMO (1).pptx
Exp 02-COCOMO (1).pptxExp 02-COCOMO (1).pptx
Exp 02-COCOMO (1).pptxYagnaGummadi
 
Implementation Of A Pre Study Phase Essay
Implementation Of A Pre Study Phase EssayImplementation Of A Pre Study Phase Essay
Implementation Of A Pre Study Phase EssayAshley Thomas
 
Book management system
Book management systemBook management system
Book management systemSHARDA SHARAN
 
Avoiding state-space explosion in Model-Checker.pdf
Avoiding state-space explosion in Model-Checker.pdfAvoiding state-space explosion in Model-Checker.pdf
Avoiding state-space explosion in Model-Checker.pdfNuioKila
 
How to build a good practice software project portfolio webversion
How to build a good practice software project portfolio   webversionHow to build a good practice software project portfolio   webversion
How to build a good practice software project portfolio webversionHennie Huijgens
 
1. Which of the following is INCORRECT regarding the process capab.docx
1. Which of the following is INCORRECT regarding the process capab.docx1. Which of the following is INCORRECT regarding the process capab.docx
1. Which of the following is INCORRECT regarding the process capab.docxjackiewalcutt
 
Software Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer ScienceSoftware Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer ScienceArti Parab Academics
 
CP7301 Software Process and Project Management notes
CP7301 Software Process and Project Management   notesCP7301 Software Process and Project Management   notes
CP7301 Software Process and Project Management notesAAKASH S
 
Introductory PresentationGoals of .docx
Introductory PresentationGoals of .docxIntroductory PresentationGoals of .docx
Introductory PresentationGoals of .docxbagotjesusa
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving TechniquesAshesh R
 
Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Minhas Kamal
 
Spm project planning
Spm project planning Spm project planning
Spm project planning Kanchana Devi
 

Ähnlich wie Converter - C- Language Program (20)

Contact management system
Contact management systemContact management system
Contact management system
 
Project Scope StatementProject NameStudent NameDateI.docx
Project Scope StatementProject NameStudent NameDateI.docxProject Scope StatementProject NameStudent NameDateI.docx
Project Scope StatementProject NameStudent NameDateI.docx
 
Cs 568 Spring 10 Lecture 5 Estimation
Cs 568 Spring 10  Lecture 5 EstimationCs 568 Spring 10  Lecture 5 Estimation
Cs 568 Spring 10 Lecture 5 Estimation
 
Use case point ( Software Estimation Technique)
Use case point ( Software Estimation Technique)Use case point ( Software Estimation Technique)
Use case point ( Software Estimation Technique)
 
Exp 02-COCOMO (1).pptx
Exp 02-COCOMO (1).pptxExp 02-COCOMO (1).pptx
Exp 02-COCOMO (1).pptx
 
Costing ass4
Costing ass4Costing ass4
Costing ass4
 
Implementation Of A Pre Study Phase Essay
Implementation Of A Pre Study Phase EssayImplementation Of A Pre Study Phase Essay
Implementation Of A Pre Study Phase Essay
 
Book management system
Book management systemBook management system
Book management system
 
Avoiding state-space explosion in Model-Checker.pdf
Avoiding state-space explosion in Model-Checker.pdfAvoiding state-space explosion in Model-Checker.pdf
Avoiding state-space explosion in Model-Checker.pdf
 
How to build a good practice software project portfolio webversion
How to build a good practice software project portfolio   webversionHow to build a good practice software project portfolio   webversion
How to build a good practice software project portfolio webversion
 
1. Which of the following is INCORRECT regarding the process capab.docx
1. Which of the following is INCORRECT regarding the process capab.docx1. Which of the following is INCORRECT regarding the process capab.docx
1. Which of the following is INCORRECT regarding the process capab.docx
 
Software Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer ScienceSoftware Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer Science
 
CP7301 Software Process and Project Management notes
CP7301 Software Process and Project Management   notesCP7301 Software Process and Project Management   notes
CP7301 Software Process and Project Management notes
 
Introductory PresentationGoals of .docx
Introductory PresentationGoals of .docxIntroductory PresentationGoals of .docx
Introductory PresentationGoals of .docx
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
Slides chapters 24-25
Slides chapters 24-25Slides chapters 24-25
Slides chapters 24-25
 
Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)Software Requirements Specification on Student Information System (SRS on SIS)
Software Requirements Specification on Student Information System (SRS on SIS)
 
notes_Lecture7.ppt
notes_Lecture7.pptnotes_Lecture7.ppt
notes_Lecture7.ppt
 
Spm project planning
Spm project planning Spm project planning
Spm project planning
 
SE chapters 24-25
SE chapters 24-25SE chapters 24-25
SE chapters 24-25
 

Mehr von Zuhaib Ali

The Skill Enhancement Institute
The Skill Enhancement InstituteThe Skill Enhancement Institute
The Skill Enhancement InstituteZuhaib Ali
 
Project report k&n’s
Project report k&n’sProject report k&n’s
Project report k&n’sZuhaib Ali
 
The curse of mummy’s tomb – Goosebumps
The curse of mummy’s tomb – GoosebumpsThe curse of mummy’s tomb – Goosebumps
The curse of mummy’s tomb – GoosebumpsZuhaib Ali
 
Servis - Shoes for everyone..
Servis - Shoes for everyone..Servis - Shoes for everyone..
Servis - Shoes for everyone..Zuhaib Ali
 
Professor Muhammad Yunus
Professor Muhammad YunusProfessor Muhammad Yunus
Professor Muhammad YunusZuhaib Ali
 
Importance of Computer in Common man’s life in Society
Importance of Computer in Common man’s life in SocietyImportance of Computer in Common man’s life in Society
Importance of Computer in Common man’s life in SocietyZuhaib Ali
 

Mehr von Zuhaib Ali (11)

The Skill Enhancement Institute
The Skill Enhancement InstituteThe Skill Enhancement Institute
The Skill Enhancement Institute
 
Trade key
Trade keyTrade key
Trade key
 
Project report k&n’s
Project report k&n’sProject report k&n’s
Project report k&n’s
 
The curse of mummy’s tomb – Goosebumps
The curse of mummy’s tomb – GoosebumpsThe curse of mummy’s tomb – Goosebumps
The curse of mummy’s tomb – Goosebumps
 
Shezad roy
Shezad royShezad roy
Shezad roy
 
Sound
Sound Sound
Sound
 
Trade key
Trade keyTrade key
Trade key
 
Servis - Shoes for everyone..
Servis - Shoes for everyone..Servis - Shoes for everyone..
Servis - Shoes for everyone..
 
Professor Muhammad Yunus
Professor Muhammad YunusProfessor Muhammad Yunus
Professor Muhammad Yunus
 
Importance of Computer in Common man’s life in Society
Importance of Computer in Common man’s life in SocietyImportance of Computer in Common man’s life in Society
Importance of Computer in Common man’s life in Society
 
Gauss’s Law
Gauss’s LawGauss’s Law
Gauss’s Law
 

Kürzlich hochgeladen

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Converter - C- Language Program

  • 1. 2013 Project Report Converter (C - Language Program) A brief report of our project “Converter” written in C Language. Submitted to: Miss Farah Nawaz Department of Computer Science Newports Institute of Communications and Economics Submitted by: Zuhaib Ali (NI-S13-BS-040001) Muhammad Shoaib (NI-F13-BS-040012) Course: Programming Techniques 1 Fall – 2013
  • 2. Newports Institute of Communication and Economics Project Report Table of Contents Acknowledgements................................................................................................................................. 1 Introduction ............................................................................................................................................ 1 Conversations ......................................................................................................................................... 1 Programming .......................................................................................................................................... 2 Header file........................................................................................................................................... 2 Switch case .......................................................................................................................................... 2 If- else statement ................................................................................................................................ 3 Custom function.................................................................................................................................. 3 Temperature ........................................................................................................................................... 4 Formulas ............................................................................................................................................. 4 Result .................................................................................................................................................. 5 Example...................................................................................................................................... 5 Time ........................................................................................................................................................ 5 Formulas ............................................................................................................................................. 6 Result .................................................................................................................................................. 6 Example...................................................................................................................................... 6 Length ..................................................................................................................................................... 6 Formulas ............................................................................................................................................. 7 Result .................................................................................................................................................. 7 Example...................................................................................................................................... 7 Flow Chart of Converter.......................................................................................................................... 8 Zuhaib Ali, Muhammad Shoaib Page ii
  • 3. Newports Institute of Communication and Economics Project Report Acknowledgements The whole praise is to Almighty Allah, creator of this universe, who made us the super creature with great knowledge. We, Zuhaib Ali, Muhammad Shoaib, as a group of student of Newports Institute of Communication and Economics, pays great thanks to our teacher Miss Farah Nawaz, who has given us the golden opportunity to do this wonderful project, that helped us in doing a lot of research and we came to know about so many new things and ideas. In last but not the least, we would like to thank our parents and friends who prayed for our success and encouraged us during this research period and supporting us throughout our lives. Introduction During the fall 2013 semester, our teacher told us to create a program in Turbo C Compiler using C Language. We decide to create a Converter that can convert Temperature, Time and Length. Because in creating such a program we can learn many new techniques about how to make program. After we complete the program, now we really know many things that we don’t know previous. Conversations In our program we have give three physical quantities to be converter from its one unit to another. These physical quantities are listed below.  Temperature  Time  Length Zuhaib Ali, Muhammad Shoaib Page 1
  • 4. Newports Institute of Communication and Economics Project Report Programming In this section we will describe the program in programming aspect. Like what is the technique working behind the program? And how the program actually works? Header file In this program we have included only one header file that is Stdio.h. Stdio.h file is the name of the standard library definition file for all Standard Input, Output. Switch case We used switch case statement to make decisions or choices based on the value of a conditional expression and specified cases. Zuhaib Ali, Muhammad Shoaib Page 2
  • 5. Newports Institute of Communication and Economics Project Report If- else statement Now we have used if-else statement the relational operators for making comparisons, The if-else statement is used to express decisions, expression true Statement1 Next statement If expression evaluates to false, Statement2 that follows the else keyword is executed, and the program continues with Next_statement Custom function We have created 11 custom functions in our program.  Temperature o Celsius to all o Fahrenheit to all o Kelvin to all  Time o Day to all o Hour to all o Minute to all o Second to all  Length o Centimeter to all o Foot to all o Inch to all o Meter to all Zuhaib Ali, Muhammad Shoaib Page 3
  • 6. Newports Institute of Communication and Economics Project Report Temperature Temperature is most common physical quantity; it is use to measure how of hot or cold an object is. It may be measure in any of various units such as Celsius, Fahrenheit, Kelvin, Rankine, Delisle, Newton, etc. We have given three frequent used units in our program to converter from one to both others. These units are listed below  Celsius  Fahrenheit  Kelvin Formulas The formulas used for temperature conversations in this program are as given in below table. From Temperature Fahrenheit Kelvin Celsius = (Fahrenheit-32)/1.8 Kelvin-273.15 Fahrenheit Celsius*1.8 = (Kelvin*1.8)-459.67 Kelvin To Celsius Celsius+273.15 (Fahrenheit+459.67)/1.8 = Zuhaib Ali, Muhammad Shoaib Page 4
  • 7. Newports Institute of Communication and Economics Project Report Result After selecting the input unit program the program ask to enter temperature in selected unit and calculate the result in other units and print it. Example Time Time is another common physical quantity; the indefinite continued progress of existence and events in the past, present, and future regarded as a whole.Time is measured in hours and minute’sseconds, days, weeks, years, decay, etc. We have given four units in our program to converter from one to other three units. These units are listed below  Days  Hours  Minutes  Seconds Zuhaib Ali, Muhammad Shoaib Page 5
  • 8. Newports Institute of Communication and Economics Project Report Formulas The formulas used for time conversations in this program are as given in below table. From Time Hours Minutes Seconds Days = Hours/24 Minutes/60/24 Seconds/60/60/24 Hours Days*24 = Minutes/60 Seconds/60/60 Minutes Days*24*60 Hours*60 = Seconds/60 Seconds Days*24*60*60 Hours*60*60 Minutes*60 = To Days Result After selecting the input unit program the program ask to enter time in selected unit and calculate the result in other units and print it. Example Length Length is also another common physical quantity; that is used to measure distance between two points.It is measured in foot, inch, kilometer, mile, meter, millimeter, yard, etc. We have given four units in our program to converter from one to both others. These units are listed below  Centimeter Zuhaib Ali, Muhammad Shoaib Page 6
  • 9. Newports Institute of Communication and Economics Project Report  Foot  Inch  Meter Formulas The formulas used for Length conversations in this program are as given in below table. From Length Foot Inch Meter Centimeter = Foot*30.48 Inch/0.3937 Meter*100 Foot Centimeter*0.033 = Inch/12 Meter/0.3048 Inch Centimeter*0.398 Foot*12 = Meter/0.0254 Meter Centimeter*100 Foot*0.3048 Inch/39.37 = To Centimeter Result After selecting the input unit program the program ask to enter Length in selected unit and calculate the result in other units and print it. Example Zuhaib Ali, Muhammad Shoaib Page 7
  • 10. Newports Institute of Communication and Economics Project Report Flow Chart of Converter Zuhaib Ali, Muhammad Shoaib Page 8