0% found this document useful (0 votes)
12 views12 pages

MN IP Project

Uploaded by

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

MN IP Project

Uploaded by

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

Project of Informatics Practices

on “Temperature Convertor”
The project is a part of partial fulfillment of Annual
Examination of XI Class completion.
Submitted to: Mrs. Chhaya Lakshkar
Submitted by: Moiz Noorji
Scholar No. : 08262
Class: XI D

Department Of Informatics Practices


St. Thomas Sr.Sec. School,
Mandsaur (M.P.)
Session 2023-24
Certificate

This is to certify that Moiz Noorji of class XI D has


successfully completed her project of Information
Technology under the guidance of Mrs. Chhaya
Lakshkar during the academic year 2023-2024.

In-charge Teacher Principal


Acknowledgement

I would like to express my gratitude to my Principal


Sr.Jyothis and school management for providing
facilities that were required.
I would like to express my special thanks to my
teacher
Mrs. Chhaya Lakshkar, who gave me the golden
opportunity to do this wonderful project, which
helped in my learning a lot.
I would like to extend my gratitude to Mr. Mohan
Thakur for providing me technical and lab support.
During the course of this project, I came to know
about new things.
I would also like to thank my parents and friends
who helped me a lot in finalizing this project within
the limited time frame.

Thank you.
Sincerely
Moiz Noorji
XI D
Index

Sr.
Particulars Pg. No.
No.
1 Introduction to Python
1

2 Introduction to Program 2

3 Codes 3-5

4 Outputs 6-7

5 Biblography 8
Introduction To Python

Python is a high-level programming language that is


widely used in the field of computer science. It is
known for its simplicity and readability, making it a
great choice for beginners.

You will learn the basics of Python programming,


including variables, data types, control structures,
functions, and file handling. Python's versatility
allows you to develop a wide range of applications,
from simple scripts to complex web applications. It's
a powerful tool that will help you understand the
fundamentals of programming and problem-solving.

1/8
Introduction To Program

Temperature Converter Program -


A temperature converter is a program that allows
you to convert temperatures between different
units, such as Celsius & Fahrenheit.

With this program, you can input a temperature in


one unit and get the equivalent value in another
unit. It's a easy program for anyone working with
temperature-related calculations or conversions. By
using the program, you'll be able to effortlessly
convert temperatures.

2/8
Codes

temp = input("Input the temperature you like to


convert? (e.g., 45F, 102C etc.) : ")
degree = int(temp[:-1])
i_convention = temp[-1]
if i_convention.upper() == "C":
result = int(round((9 * degree) / 5 + 32))
o_convention = "Fahrenheit"
elif i_convention.upper() == "F":
result = int(round((degree - 32) * 5 / 9))
o_convention = "Celsius"
else:
print("Input proper convention.")
quit()
3/8

# Display the converted temperature in the


specified output convention
print("The temperature in", o_convention, "is",
result, "degrees.")
def celsius_to_fahrenheit(celsius):
fahrenheit = (celsius * 9/5) + 32
return fahrenheit
def fahrenheit_to_celsius(fahrenheit):
celsius = (fahrenheit - 32) * 5/9
return celsius
temperature = float(input("Enter the temperature:
"))
unit = input("Enter the unit (C for Celsius, F for
Fahrenheit): ")
if unit.upper() == "C":
converted_temp =
celsius_to_fahrenheit(temperature)
print(f"The temperature in Fahrenheit is:
{converted_temp}°F")
elif unit.upper() == "F":
converted_temp =
4/8

fahrenheit_to_celsius(temperature)
print(f"The temperature in Celsius is:
{converted_temp}°C")
else:
print("Invalid unit. Please enter 'C' for Celsius or
'F' for Fahrenheit.")

5/8

Outputs
Case-1 :- If we enter the unit.

6/8

Case-2 :- If we do not enter the unit.


7/8

Biblography
Sites we refer -

 www.google.com
 www.chatgpt.com

Books we refer -

 IP NCERT
 Sumita Arora

8/8

You might also like