East West University
Department of Computer Science and Engineering
Course Name: Structured Programming
Course Code: CSE 103
Section 1
Project Report:
UNIT CONVERTER
Submitted to:
Dr. Ahmed Wasif Reza
Associate Professor & Chairperson
Dept. of Computer Science and Engineering
East West University, Bangladesh
Submitted by:
Inteser Islam Khan
2019-1-60-043
Moniruz Zaman Borshon
2019-1-60-033
Jannatul Ferdous
2019-2-60-010
Date of Submission:
25th August 2019
Max Awarded
A. Report
i) Introduction
ii) Screen shorts (output)
iii) Source code
iv) Disk/ CD neatly attached (Y/N)
B. Source Code
i) Style
a)Indentation
b)Self-documentation
ii)Modularity(small size functions)
iii)Error reporting capabilities
iv)Code efficiency and strategy
c. Program execution
i) Compile without errors
ii)User friendly
iii)Error free during runtime
iv)Program output
D. Presentation and Demonstration
i) Presentation and Communication
skills
E. Bonus
i) Extra significant features
Introduction
During the summer 2019 semester, our teacher told us to
create a program in CodeBlocks using C language. This program can
convert Mass, Length, Area, Temperature, Time and Currency. For all
the conversation this program uses formulas to convert unit to unit. In
this program there is a admin panel where currency values can be
changed randomly if needed.
After we complete the program, we learnt many things which we didn’t
know before completing this project.
Conversations
In this project we have given six physical quantities to be
converter from its one unit to one another. These physical quantities
are listed below.
• Mass
• Length
• Area
TOTAL
• Temperature
• Time
• Currency
Program Diagonal:
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 three header file they are:-
• include<stdio.h>
• include<string.h>
• include<windows.h>
• If-else statement:
Now we have used if-else statement the rational
operators for making comparisons, The if-else statement is used to
express decisions, If expression evaluates to true, the program
continuous to next statement.
• While-loop:
We have used while loop for showing the results from text
file (result.txt) .The conversation results are stored in the result.txt file.
 File:
In our code we used 106 files. There is a file called “result.txt”
which stores the history (result) of the conversation. The other files
store the update of currency values inputted by the admin.
• Custom function:
We have created 11 custom functions in our program.
 mass();
 length();
 area();
 temperature();
 time();
 currency();
 result();
 start();
 c value();
 finish();
 admin();
Main Menu
• Admin
In thisprogramadminpanel isadded.Ouradminpanel isusedto change the currency
values.Onlyadmincanenterinadminpanel byusingpassword.Thiscode checkthe passwordif the
passwordiscorrect onlythe admin can change the currency values.
• User
In thisprogramthere is a userpanel where usercanconvertby unitto unit.
 Mass:
1. Kilogram
2. Gram
3. Milligram
4. Pound
5. Tonne
6. 0unces
7. Microgram
8. Carat
 Length:
1. Micrometer
2. Millimeter
3. Centimeter
4. Decimeter
5. Meter
6. Inch
7. Feet
8. Yard
9. Mile
10. Kilometer
11. Nanometer
 Area:
1. Millimeter^2
2. Centimeter^2
3. Decimeter^2
4. Meter^2
5. Inch^2
6. Feet^2
7. Yard^2
8. Ares
9. Hectare
10. Kilometer^2
11. Acre
12. Mile^2
 Temperature:
1. Celsius
2. Fahrenheit
3. Kelvin
4. Rankine
 Time:
1. Millisecond
2. Second
3. Minute
4. Hour
5. Day
6. Week
7. Month
8. Year
 Currency:
1. AED(UnitedArabEmiratesDirham)
2. AUD(AustralianDollar)
3. BDT(Bangladeshi Taka)
4. CAD(CanadianDollar)
5. CHF(SwissFrance)
6. CNY(ChineseYuan)
7. EUR(Euro)
8. GBP(BritishPoundSterling)
9. INR(IndianRupee)
10. JPY(Japanese Yen)
11. MYR(MalaysianRinggit)
12. PAK(Pakistani Rupee)
13. QAR(Qatari Riyal)
14. SGD(Singapore Dollar)
15. USD(UnitedState Dollar)
Source Code:
https://drive.google.com/open?id=0B46lkhvxrlOpV1gwZzc0T0ZucFNQZVB5YW5Bb0duUkcwOGpj
Program Output
Main Menu:
There are 2 optioninthis program. 1. Admin& 2. User
Admin:
Onlybyenteringthe correctpasswordAdmincanchange or update the currencyvalues.
User:
User can convertunitto unit.There isa menu where usercan convertmass,length,area,temperature,
time,currency.
Limitation:
 Whenwe run the program it’slittle bitslow

Unit converter using in c

  • 1.
    East West University Departmentof Computer Science and Engineering Course Name: Structured Programming Course Code: CSE 103 Section 1 Project Report: UNIT CONVERTER Submitted to: Dr. Ahmed Wasif Reza Associate Professor & Chairperson Dept. of Computer Science and Engineering East West University, Bangladesh Submitted by: Inteser Islam Khan 2019-1-60-043 Moniruz Zaman Borshon 2019-1-60-033 Jannatul Ferdous 2019-2-60-010 Date of Submission: 25th August 2019
  • 2.
    Max Awarded A. Report i)Introduction ii) Screen shorts (output) iii) Source code iv) Disk/ CD neatly attached (Y/N) B. Source Code i) Style a)Indentation b)Self-documentation ii)Modularity(small size functions) iii)Error reporting capabilities iv)Code efficiency and strategy c. Program execution i) Compile without errors ii)User friendly iii)Error free during runtime iv)Program output D. Presentation and Demonstration i) Presentation and Communication skills E. Bonus i) Extra significant features
  • 3.
    Introduction During the summer2019 semester, our teacher told us to create a program in CodeBlocks using C language. This program can convert Mass, Length, Area, Temperature, Time and Currency. For all the conversation this program uses formulas to convert unit to unit. In this program there is a admin panel where currency values can be changed randomly if needed. After we complete the program, we learnt many things which we didn’t know before completing this project. Conversations In this project we have given six physical quantities to be converter from its one unit to one another. These physical quantities are listed below. • Mass • Length • Area TOTAL
  • 4.
    • Temperature • Time •Currency Program Diagonal: 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?
  • 5.
    • Header file: Inthis program we have included three header file they are:- • include<stdio.h> • include<string.h> • include<windows.h> • If-else statement: Now we have used if-else statement the rational operators for making comparisons, The if-else statement is used to express decisions, If expression evaluates to true, the program continuous to next statement. • While-loop:
  • 6.
    We have usedwhile loop for showing the results from text file (result.txt) .The conversation results are stored in the result.txt file.  File: In our code we used 106 files. There is a file called “result.txt” which stores the history (result) of the conversation. The other files store the update of currency values inputted by the admin. • Custom function: We have created 11 custom functions in our program.  mass();  length();  area();  temperature();  time();  currency();  result();  start();  c value();  finish();  admin();
  • 7.
    Main Menu • Admin Inthisprogramadminpanel isadded.Ouradminpanel isusedto change the currency values.Onlyadmincanenterinadminpanel byusingpassword.Thiscode checkthe passwordif the passwordiscorrect onlythe admin can change the currency values. • User In thisprogramthere is a userpanel where usercanconvertby unitto unit.  Mass: 1. Kilogram 2. Gram 3. Milligram 4. Pound 5. Tonne 6. 0unces 7. Microgram 8. Carat  Length: 1. Micrometer 2. Millimeter 3. Centimeter 4. Decimeter 5. Meter 6. Inch 7. Feet 8. Yard 9. Mile 10. Kilometer 11. Nanometer  Area: 1. Millimeter^2 2. Centimeter^2 3. Decimeter^2 4. Meter^2 5. Inch^2
  • 8.
    6. Feet^2 7. Yard^2 8.Ares 9. Hectare 10. Kilometer^2 11. Acre 12. Mile^2  Temperature: 1. Celsius 2. Fahrenheit 3. Kelvin 4. Rankine  Time: 1. Millisecond 2. Second 3. Minute 4. Hour 5. Day 6. Week 7. Month 8. Year  Currency: 1. AED(UnitedArabEmiratesDirham) 2. AUD(AustralianDollar) 3. BDT(Bangladeshi Taka) 4. CAD(CanadianDollar) 5. CHF(SwissFrance) 6. CNY(ChineseYuan) 7. EUR(Euro) 8. GBP(BritishPoundSterling) 9. INR(IndianRupee) 10. JPY(Japanese Yen) 11. MYR(MalaysianRinggit) 12. PAK(Pakistani Rupee) 13. QAR(Qatari Riyal)
  • 9.
    14. SGD(Singapore Dollar) 15.USD(UnitedState Dollar) Source Code: https://drive.google.com/open?id=0B46lkhvxrlOpV1gwZzc0T0ZucFNQZVB5YW5Bb0duUkcwOGpj Program Output Main Menu: There are 2 optioninthis program. 1. Admin& 2. User Admin: Onlybyenteringthe correctpasswordAdmincanchange or update the currencyvalues.
  • 10.
  • 11.
    User can convertunittounit.There isa menu where usercan convertmass,length,area,temperature, time,currency.
  • 12.
    Limitation:  Whenwe runthe program it’slittle bitslow