Onvertor
Onvertor
PROJECT FILE on
“TEMPERATURE
CONVERTER”
NAME :
ROLL NO.:
DECLARATION
I, [Your Full Name], a student of Class 12, [Stream/Subject], at [School Name],
hereby declare that all the information provided by me in the examination form and
school records is accurate and true to the best of my knowledge. I affirm that the
project work submissions are my original creations, and I have properly cited all
references wherever necessary. I assure that I have followed the guidelines set by the
school and board for completing my coursework and preparing for examinations.
Furthermore, I commit to adhering to all the rules and regulations during the
CERTIFICATE
This is to certify that [Student's Name], a student of Class 12, [Stream/Subject],
Roll No. [Roll Number], at [School Name], has completed the project titled [Project
Title] during the academic session [Year]. The project was done under my guidance
and follows the rules set by the [Board Name]. It is the student's own work, and all
sources have been properly mentioned. I wish the student the best for their future.
TABLE CONTENT
SR. NO. CONTENT
1. INTRODUCTION
(iii)web technology
3. OUTPUT
5. BIBLIOGRAPHY
ACKNOWLEDGEMENT
am also thankful to [School Name] for providing the necessary resources and a
would not have been possible without the combined efforts of everyone
provide users with a quick and accurate way to convert temperatures between Celsius,
Fahrenheit, and Kelvin. With its intuitive and user-friendly interface, this tool allows
individuals to effortlessly input a temperature in one unit and instantly view the
converted values in the other units. The application is equipped with basic validation
features to ensure correct data entries, improving the overall user experience by
various devices, including desktops and mobile phones. Beyond its practical
demonstrating how simple, interactive tools can be created through thoughtful design
Converter stands out as a valuable learning project. It showcases how basic web
technologies can create useful tools that enhance user convenience in everyday tasks.
friendly web application that allows users to easily convert temperatures between Celsius,
Fahrenheit, and Kelvin. This project seeks to enhance user experience by providing real-
time conversions, helping users quickly understand temperature differences across various
units. Additionally, the project aims to demonstrate the application of fundamental web
technologies like HTML, CSS, and JavaScript in building interactive and responsive tools.
By prioritizing ease of use and accessibility, the Temperature Converter project aspires to be
both a practical tool for daily use and a learning platform for those new to web
development.
1. Simple and Intuitive Interface: A clean and user-friendly design that allows
Celsius/Fahrenheit.
7. Lightweight and Fast: Minimal use of resources ensures the website loads
WEB TECHNOLOGY
Web Technology refers to the tools, techniques, and methodologies used to create
and manage websites and web applications. It plays a pivotal role in enabling
1. Client-Side Technologies
1. User Request:
The user initiates a request by typing a URL into their browser or clicking a
link/button on the website. This request is sent via the internet to the web
server.
2. Web Server Processing:
The web server receives the request and performs the required processing. This
may include fetching data from a database, running scripts, or generating
dynamic content depending on what is requested.
3. Response:
The server processes the request and sends the requested webpage or data back
to the browser. If any data is required from the database (such as user login
details), the server will query the database before sending the final response.
PROJECT REQUIREMENT
1. Front-End Design:
HTML:
o A basic HTML form that allows user input.
o The form will include:
An input field for user data.
A submit button to process the input.
A section to display the output or results.
CSS:
o Basic styling for the form to enhance visual appeal.
o Responsive design to ensure the application looks good on both mobile
and desktop devices.
2.Functionality:
Input Validation:
o Validate that the user has entered data in the correct format and meets
any specified criteria (e.g., valid dates, numbers).
Calculation:
o Use JavaScript to perform calculations based on the user input.
o The application should return results based on the calculations
performed (e.g., age, BMI, etc.).
Display Output:
o After the user submits their input, the calculated result will be displayed
in a designated output area.
IMPLEMENTATION
Index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-
Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/
dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<title>Temperature Converter</title>
</head>
<body>
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-6 text-center">
<h1>Temperature Converter</h1>
<div id="celsius">
<input
type="number"
class="form-control form-control-lg form-padding"
id="input-celsius"
placeholder="celsius"
/>
</div>
<div id="fahrenheit">
<input
type="number"
class="form-control form-control-lg form-padding"
id="input-fahrenheit"
placeholder="fahrenheit"
/>
</div>
<div id="kelvin">
<input
type="number"
class="form-control form-control-lg form-padding"
id="input-kelvin"
placeholder="kelvin"
/>
</div>
</div>
</div>
<footer>
<p>By Elle J.</p>
<p>
<a href="https://github.com/itsellej" target="_blank"
><img
class="icons"
src="https://res.cloudinary.com/itsellej/image/upload/v1533400136/rock-
paper-scissors/github-icon.png"
alt="Github icon"
/></a>
<a href="https://codepen.io/itsellej/" target="_blank"
><img
class="icons"
src="https://res.cloudinary.com/itsellej/image/upload/v1533400135/rock-
paper-scissors/codepen-icon.png"
alt="Codepen icon"
/></a>
</p>
<p>
<em
>Credit - icons from <a href="https://pngtree.com/">pngtree</a></em
>
</p>
</footer>
</div>
Style.css
body {
margin-top: 60px;
text-align: center;
}
h1 {
padding-bottom: 0.5rem;
}
input[type="number"] {
cursor: pointer;
}
#input-celsius {
background-color: #52ddcf;
font-size: 2.5rem;
}
#input-fahrenheit {
background-color: #16bac5;
font-size: 2.5rem;
}
#input-kelvin {
background-color: #42a0d9;
font-size: 2.5rem;
}
.form-padding {
padding: 2rem 1rem;
}
::-webkit-input-placeholder {
color: #ffffff !important;
}
::-moz-placeholder {
color: #ffffff !important;
}
:-ms-input-placeholder {
color: #ffffff !important;
}
:-moz-placeholder {
color: #ffffff !important;
}
footer {
padding-top: 1.5rem;
font-size: 0.7rem;
line-height: 0.2rem;
text-align: center;
}
.icons {
max-width: 25px;
height: auto;
}
main.js
const celsiusInput = document.querySelector("#celsius > input");
const fahrenheitInput = document.querySelector("#fahrenheit > input");
const kelvinInput = document.querySelector("#kelvin > input");
celsiusInput.value = roundToTwoDP(celsiusTemp);
kelvinInput.value = roundToTwoDP(kelvinTemp);
};
celsiusInput.value = roundToTwoDP(celsiusTemp);
fahrenheitInput.value = roundToTwoDP(fahrenheitTemp);
};
Learning:
1. HTML Structure: gained a solid understanding of how to create a basic
webpage structure using HTML, including forms, input fields, and buttons.
2. CSS Styling:learnt how to use CSS to style your webpage, making it visually
appealing by applying colors, fonts, spacing, and aligning elements to create a
clean, organized layout.
3. JavaScript Basics: understood how JavaScript works by writing the logic for
converting between Celsius, Fahrenheit, and Kelvin, using basic functions,
variables, and operators.
4. Understanding Conversion Logic: mathematical thinking by applying formulas
to convert between different temperature units and ensuring the accuracy of the
output.
5. Error Handling: handled errors in a user-friendly way, such as displaying
helpful messages when users enter incorrect data (like letters instead of
numbers).
BIBILIOGRAPHY
1. https://www.w3schools.com
2. https://www.geeksforgeeks.org/web-
development/
3.CBSE Class 12 Computer Science