0% found this document useful (0 votes)
527 views21 pages

Temperature Converter Micro Project

not any

Uploaded by

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

Temperature Converter Micro Project

not any

Uploaded by

Aishwarya kinge
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

GOVERNMENT POLYTECHNIC THANE

PROGRAMME- computer engineering

Institute Code 0116


Advanced Java Programming (22517)
Sem = C05I
A Micro Project Report
On
“Temperature Converter”
Submitted by
Ms. Akanksha vaijnath ingle (2201160064)
[Link] nagnath Deshmukh (2201160052)
Ms. Tanvi tanaji Deshmukh (2201160061)
Ms. Aishwarya Gajanan kinge (2201160046)
Ms. Pari narsinha mule (2201160029)

UNDER GUIDANCE OF

[Link]
LECTURER,COMPUTER ENGINEERING DEPARTMENT
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(2024-2025)
GOVERNMENT POLYTECHNIC, THANE

Institute Vision:
To create component technical manpower to cater Industrial and
Social needs.

Institute Mission:
We are committed to-

• Provide an environment that values and encourages knowledge


acquisition with effective curriculum implementation.
• Maintain well equipped laboratories to develop industrial
competencies among the students.
• Empower and motivate faculties toward building their domain
expertise in technology and management.
• Groom all round personality of student toward leadership, self-
employment and lifelong learning.
• Promote Industry Institute Interaction through training and
Placement service, continuing education programs, consultancy
& Technical services etc. for socio-economic development.
• Our Core Values are Ethics, Equity, Women
Empowerment, Safety & Eco-friendly Practices.
GOVERNMENT POLYTECHNIC THANE

CERTIFICATE

This is to certified that following first year Computer Engineering


students have successfully and satisfactory completed their micro
project work, entitled “Temperature Converter” in partial
fulfillment of the requirement for diploma in Computer
Engineering academic year 2024-2025.

Ms. Akanksha ingle


Ms. Tanvi Deshmukh
Ms. Pari mule
Ms. Aishwarya kinge
Ms. Rasika Deshmukh

Mrs. J. A. Salunkhe Mr. J. R. Nikhade


Subject Teacher Incharge H.O.D
Table of Contents

Sr. No Topics Page


No.

1 Rational 1

2 Aim/benefit of the Micro-project 1

3 Course Outcomes Addressed 2

4 Actual Methodology Followed 2

5 Code of micro-project 3-15

6 Output of micro-project 16

7 Resourced Used 17

8 Name of the student’s with Enrollment No. 17


A Micro-Project REPORT On

“Temperature Converter”
1. Rational:-

Java technology is widely used for web applications


development. Based on the object oriented concepts and core
Java concepts, this course will equip the students with the
required knowledge and skill of object oriented
programming approach needed for the development of
robust, powerful web applications. Through this course
students will get hands-on experience on GUI Technologies
viz. AWT and Swings, event handling mechanisms and
network programming. The course also gives coverage to
various web applications aspects like Database Interaction,
server side components and servlets.

2. Aim/Benefit of the Micro-Project:-

The aim of a temperature converter is to facilitate the


conversion of temperature values between different scales,
such as Celsius, Fahrenheit, and Kelvin. This tool helps
users accurately translate temperature readings for various
applications, including scientific research, cooking, and
travel, ensuring clarity and consistency in temperature
measurement.
3. Course Outcomes Addressed:-

a. Develop program using GUI framework.


b. Handle events of AWT and Swing Components.
c. Develop program to handle events in Java Programming.

4. Actual Methodology Followed:

1. First we decided the topic of micro-project that


“Temperature Converter”.
2. Then we planned the whole process of completing the
micro-project and also the design of the micro-project with
team member’s accordingly.
3. Then we prepared the proposal of the micro-project
accordingly.
4. Then we finalized the how to make proposal among us.
5. We later started gathering and collecting the information
about our project.
6. Then we write program on our project.
7. After collecting our required information we started
preparing report of the project and submitting soft-copy to
teacher.
5. Code of micro-project:
import [Link].*; import

[Link].*;

public class TC extends JFrame {

JLabel l1, l2, l3, l4;

JComboBox tc1, tc2;

JTextField t1, t2;

JButton b, dot, ac, bs, pm;

JButton n0, n1, n2, n3, n4, n5, n6, n7, n8, n9;

public TC(String s) {

super(s);

public void setComp() {

String arr1[] = { "Celsius", "Fahrenheit", "Kelvin", "Rankine", "Reaumur" };

String arr2[] = { "Celsius", "Fahrenheit", "Kelvin", "Rankine", "Reaumur" };

l1 = new JLabel("To"); l2 = new JLabel("Enter the Value:"); l3 = new

JLabel("Converted Value:"); l4 = new JLabel("From"); tc1 = new

JComboBox(arr1);

tc2 = new JComboBox(arr2); t1

= new JTextField();
t2 = new JTextField();

b = new JButton("Convert");

dot = new JButton("."); pm =

new JButton("±"); bs = new

JButton("<--"); ac = new

JButton("AC"); n0 = new

JButton("0"); n1 = new

JButton("1"); n2 = new

JButton("2"); n3 = new

JButton("3"); n4 = new

JButton("4"); n5 = new

JButton("5"); n6 = new

JButton("6"); n7 = new

JButton("7"); n8 = new

JButton("8"); n9 = new

JButton("9");

setLayout(null);

[Link](75, 50, 100, 20);

[Link](200, 50, 100, 20);

[Link](100, 75, 50, 20);

[Link](90, 25, 50, 20);

[Link](200, 35, 100, 20);

[Link](200, 85, 100, 20);


[Link](75, 100, 100, 20);

[Link](200, 100, 100, 20);

[Link](138, 150, 100, 20);

[Link](238, 200, 50, 100);

[Link](238, 350, 50, 50);

[Link](238, 300, 50, 50);

[Link](188, 350, 50, 50);

[Link](88, 350, 100, 50);

[Link](88, 200, 50, 50);

[Link](138, 200, 50, 50);

[Link](188, 200, 50, 50);

[Link](88, 250, 50, 50);

[Link](138, 250, 50, 50);

[Link](188, 250, 50, 50);

[Link](88, 300, 50, 50);

[Link](138, 300, 50, 50);

[Link](188, 300, 50, 50);

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());
[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

[Link](new Handler());

add(tc1);

add(tc2);

add(l1);

add(l2);

add(l3);

add(l4);

add(t1);

add(t2);

add(b);

add(ac);

add(dot);

add(pm); add(bs);
add(n0);

add(n1);

add(n2);

add(n3);

add(n4);

add(n5);

add(n6);

add(n7);

add(n8);

add(n9);

[Link](false);

class Handler implements ActionListener { public

void actionPerformed(ActionEvent e) {

String x, y;

x = (String) [Link](); y

= (String) [Link]();

if ([Link]() == n0)

[Link]([Link]() + "0"); if

([Link]() == n1)

[Link]([Link]() + "1"); if
([Link]() == n2)

[Link]([Link]() + "2"); if

([Link]() == n3)

[Link]([Link]() + "3"); if

([Link]() == n4)

[Link]([Link]() + "4"); if

([Link]() == n5)

[Link]([Link]() + "5"); if

([Link]() == n6)

[Link]([Link]() + "6"); if

([Link]() == n7)

[Link]([Link]() + "7"); if

([Link]() == n8)

[Link]([Link]() + "8"); if

([Link]() == n9)

[Link]([Link]() + "9"); if

([Link]() == dot)

[Link]([Link]() + "."); if

([Link]() == ac) {

[Link]("");

[Link]("");

}
if ([Link]() == pm) {

String spm = new String();


spm = [Link](); if

([Link]() == 0)

[Link]("-");

else if ([Link](0) != '-')

[Link]("-" + [Link]()); else

[Link]("" + [Link](1));

if ([Link]() == bs) { int

n;

String bsp = new String(); bsp

= [Link]();

n = [Link]();
[Link]("" + [Link](0, n - 1));

}
if ([Link]() == b) {

// Both are same.......................

if (x == "Celsius" && y == "Celsius") { [Link](""

+ [Link]());

} else if (x == "Fahrenheit" && y == "Fahrenheit") { [Link](""

+ [Link]());

} else if (x == "Kelvin" && y == "Kelvin") { [Link](""

+ [Link]());

} else if (x == "Rankine" && y == "Rankine") { [Link](""

+ [Link]());
} else if (x == "Reaumur" && y == "Reaumur") { [Link](""

+ [Link]());

// Celsius to others.........................

else if (x == "Celsius" && y == "Fahrenheit") {

String s = [Link](); float a =

[Link](s); float b = (float) ((a * 9 /

5) + 32); [Link]("" + b);

} else if (x == "Celsius" && y == "Kelvin")

{ String s = [Link](); float a =

[Link](s); float b = (float) (a +

273.15); [Link]("" + b);

} else if (x == "Celsius" && y == "Rankine")

{ String s = [Link](); float a =

[Link](s); float b = (float) (a * 9 /

5 + 32 + 459.67);
[Link]("" + b);

} else if (x ==

String s = [Link]();

"Celsius" && y == "Reaumur") {

float a =

[Link](s); float b

= (float) (a * 0.8);

[Link]("" + b);

// Fahrenheit to others......................

else if (x == "Fahrenheit" && y == "Celsius")

{ String s = [Link](); float a =

[Link](s); float b = (float) ((a - 32)

* 5 / 9); [Link]("" + b);

} else if (x == "Fahrenheit" && y == "Kelvin") {

String s = [Link]();

float a = [Link](s);

float b = (float) ((a - 32) * 5 / 9 + 273.15);

[Link]("" + b);

} else if (x == "Fahrenheit" && y == "Rankine") {

String s = [Link](); float a =

[Link](s); float b = (float) (a + 459.67);


[Link]("" + b);

} else if (x ==

String s = [Link]();

"Fahrenheit" && y == "Reaumur") {

float a = [Link](s);

float b = (float) ((a - 32) / 2.25);

[Link]("" + b);

// Kelvin to others.........................

else if (x == "Kelvin" && y == "Celsius") {

String s = [Link](); float a =

[Link](s); float b = (float) (a -

273.15); [Link]("" + b);

} else if (x == "Kelvin" && y == "Fahrenheit") {

String s = [Link]();

float a = [Link](s);

float b = (float) ((a - 273.15) * 9 / 5 + 32);

[Link]("" + b);

} else if (x == "Kelvin" && y == "Rankine")

{ String s = [Link](); float a =

[Link](s); float b = (float) (a * 9 /

5);
[Link]("" + b);

} else if (x ==

String s = [Link]();

"Kelvin" && y == "Reaumur") {

float a = [Link](s);

float b = (float) ((a - 273.15) * 0.8); [Link](""

+ b);

// Rankine to others............................

else if (x == "Rankine" && y == "Celsius") {

String s = [Link]();

float a = [Link](s);

float b = (float) ((a - 32 - 459.67) / 1.8);

[Link]("" + b);

} else if (x == "Rankine" && y == "Fahrenheit") {

String s = [Link](); float a =

[Link](s); float b = (float) (a - 459.67);

[Link]("" + b);

} else if (x == "Rankine" && y == "Kelvin")

{ String s = [Link](); float a =

[Link](s); float b = (float) (a / 1.8);

"Rankine" && y == "Reaumur") {


[Link]("" + b);

} else if (x ==

String s = [Link]();

float a = [Link](s);

float b = (float) ((a - 32 - 459.67) / 2.25);

[Link]("" + b);

// Reaumur to others........................

else if (x == "Reaumur" && y == "Celsius") {

String s = [Link](); float a =

[Link](s); float b = (float) (a *

1.25); [Link]("" + b);

} else if (x == "Reaumur" && y == "Fahrenheit") {

String s = [Link](); float a =

[Link](s); float b = (float) (a * 2.25 +

32); [Link]("" + b);

} else if (x == "Reaumur" && y == "Kelvin") {

String s = [Link]();

float a = [Link](s);

float b = (float) (a * 1.25 + 273.15);


"Reaumur" && y == "Rankine") {
[Link]("" + b);

} else if (x ==

String s = [Link]();

float a = [Link](s);

float b = (float) (a * 2.25 + 32 + 459.67);

[Link]("" + b);

public static void main(String[] args) {

TC jf = new TC("Temperature Converter");

[Link](); [Link](400, 500);

[Link](true);

[Link](JFrame.EXIT_ON_CLOSE);

}
6. Output of micro-project:
7. Resources used:-

Sr. Name of Specification Qty. Remark


No Resources/material
1 Internet Browser Google chrome 1

2 Computer System Windows 10, 1


2.60GHZ, 4 GB
RAM, AMD Ryzen
processor
3 Other VS-Code 1

8. Name of the student’s with Enrollment No:-


Name of Students Enrollment No

Akanksha ingle 2201160064

Pari mule 2201160029

Tanvi Deshmukh 2201160061

Aishwarya kinge 2201160046

Rasika Deshmukh 2201160052

Mrs. J. A. Salunkhe
(Lect. In Computer Engineering Department)

Common questions

Powered by AI

The project's methodology underscores the importance of collaborative work, as students divided tasks, shared information, and coordinated efforts to achieve the project's goals. This collaborative effort ensured efficient project planning, design, and execution, illustrating teamwork's critical role in successful project completion .

The Java program ensures functionality by implementing conversion formulas within an ActionListener that responds to user inputs. It handles explicit temperature conversions between Celsius, Fahrenheit, Kelvin, Rankine, and Reaumur, using standard mathematical conversions for each unit pairing .

The Advanced Java Programming course emphasizes an object-oriented programming approach, providing students with necessary Java technology skills for developing robust and powerful web applications. The course offers hands-on experience with GUI technologies such as AWT and Swings, event handling mechanisms, and network programming .

Students adopted a structured methodology during the execution of the Temperature Converter project. This included selecting the project topic, planning and designing the project collaboratively, preparing a proposal, gathering information, writing the program, and finally compiling a project report for submission .

The Temperature Converter micro-project aims to improve students' skills in event handling and GUI development by engaging them in practical application development using Java. It specifically addresses course outcomes like developing programs using GUI frameworks and handling events of AWT and Swing Components .

The temperature converter Java program uses several components including JComboBox for selecting temperature units, JTextField for user input and converted values display, and JButton for interaction elements such as 'Convert'. JLabel elements are used to label fields appropriately, and an ActionListener is implemented to handle button press events in the UI .

The Temperature Converter tool provides benefits in various real-world applications by facilitating accurate temperature conversions across different scales, which is essential in scientific research, culinary endeavors, and traveling scenarios. This ensures clarity and consistency in temperature measurement, thus enhancing user interactions with environmental data .

The institute's vision to create competent technical manpower aligns with the outcomes of the micro-project by equipping students with practical programming skills and promoting an understanding of GUI development. This alignment fosters industrial readiness and technical empowerment among students, fulfilling the institute's educational objectives .

Well-equipped laboratories are crucial in providing hands-on experience, which enhances students' proficiency in technical projects. In the context of the Temperature Converter project, access to up-to-date computing resources allows students to effectively implement and test GUI-based applications, fostering industrial competencies which are a part of the institute's mission .

The structured project reports and utilization of appropriate resources reflect the institute's commitment to technical education by ensuring students understand project planning, execution, and reporting processes. Access to tools like VS-Code and the Windows operating system demonstrates a supportive learning environment that promotes student development and technical expertise .

You might also like