Rescued Document
Rescued Document
CERTIFICATION
This is to certify that the following students of this Institute have carried Out this
micro-project work on “CURRENCY CONVERTER USING AWT” under the
guidance of Mr. A. B. RAMTEKE in the Diploma Engineering During the
session 2024-2025. This work Has been done in the partial fulfillment of the
award for in Computer Engineering from Maharashtra State Board of Technical
Education, Mumbai.
SUBMITTED-BY
Principal
Dr. R. J. WANKHEDE
Part - A CURRENCY CONVERTER USING AWT
1.0 Aim :
Currency Converter using AWT
1 Laptop MAC M2
Sr No. Details of Activity Plan start date Plan Finish date Name of responsible
group member.
5. Implement PART-B
6. Corrections of report
7. Submission of Final
Report
Part B “CURRENCY CONVERTER USING AWT”
1.0 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 studentswill get hands-on experience
on GUI Technologies viz. A WT 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.0 Aim of micro-project
Currency Converter using AWT
CODE :
import java.awt.*;
import java.awt.event.*;
public CurrencyConverter() {
setTitle("Currency Converter");
setSize(400, 300); setLayout(null);
// To Currency
toLabel = new Label("To:");
toLabel.setBounds(50, 150, 80, 30);
add(toLabel);
if (from.equals(to)) {
return amount;
}
// Convert to INR first double inrAmount = 0;
switch (from) { case "USD": inrAmount = amount *
usdToInr; break; case "EUR": inrAmount = amount
* eurToInr; break; case "INR": inrAmount =
amount; break;
}
// Convert INR to target currency switch
(to) { case "USD": return inrAmount /
usdToInr; case "EUR": return inrAmount /
eurToInr; case "INR": return inrAmount;
}
return 0;
}
OUTPUT :
Conclusion :
The project involves a good knowledge of java programming language. The developer will
be able to implement it easily as it doesn’t require any database and the sourse code is also
available for free. This project is very affordable and useful for the people who are in
business,shares or finance. As it is a web-based program,it will update automatically
Reference :
https://www.geeksforgeeks.com/ https://www.javapoint.com/