0% found this document useful (0 votes)
78 views

AJP Final PDF

AJP Final copy pdf

Uploaded by

Soham Bijwar
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)
78 views

AJP Final PDF

AJP Final copy pdf

Uploaded by

Soham Bijwar
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
You are on page 1/ 15

MICROPROJECT REPORT ON

“ Currency Convertor Using Swing”

IN PARTIAL FULFILMENT OF DIPLOMA IN COMPUTER ENGINEERING


(Fifth Semester)
In the Subject of
Advanced Java Programming
(22517)

Submitted By
Rakesh S.Raut (2201320080)
Vinit D.Sahare (2201320081 )
Soham S.Bijwar (2201320233)

Submitted To

Maharashtra State Board of Technical Education, Mumbai(M.S)

Under the Guidance of

Mr P.U.Malve
Lecturer in Department of Computer Engineering
Government Polytechnic Arvi Dist-Wardha(2024-2025)

Page | 1
Government Polytechnic Arvi
Government Polytechnic , Arvi.
Department of Computer Engineering

Certificate
This is to certify, that students whose name mention below of Fifth Semester of
Diploma in Computer Engineering has satisfactorily completed the Microproject
entitled “Currency Convertor Using Swing” in Advanced Java Programming or
theacademic year 2024-25 as Prescribed in MSBTE curriculum.

Name Enrollment No Seat No


Rakesh S.Raut 2201320080 07
Vinit D.Sahare 2201320081 08
Soham S.Bijwar 2201320233 19

Subject Teacher Head of the Department Principal


Mr. P.U.Malve Dr.M.A.Ali Dr.M.A.Ali

Place: Arvi
Date:

Page | 2
Government Polytechnic Arvi
Declaration

We under signed hereby declare that the micro project report entitled “Currency
Convertor Using Swing”. I further declare that contents of this report are
properly citied and well acknowledge. This present report is not submitted to
any other examination of this or any other institute for the award of any
diploma.

(Signature)

Place: Arvi
Date:

Page | 3
Government Polytechnic Arvi
Part A – MicroProject Proposal

“Currency Convertor Using Swing”

1. Brief Introduction:-

The "Currency Converter Using Swing" project aims to create a user-friendly application that
enables users to convert amounts between different currencies. Leveraging Java's Swing
framework, the application will provide a graphical user interface (GUI) that is both intuitive
and responsive.

Key Features:

1. User Interface: The GUI will include input fields for the amount to be converted,
selection dropdowns for the source and target currencies, and a button to execute the
conversion.
2. Real-Time Exchange Rates: The application can be enhanced to fetch real-time
exchange rates from an API, ensuring accurate conversions.
3. Error Handling: It will include input validation to manage incorrect data entries and
ensure a smooth user experience.
4. Historical Data: Optionally, the app could display historical exchange rates for better
user insights.

Technologies Used:

• Java: The core programming language for developing the application.


• Swing: The GUI toolkit for building the application interface.
• API Integration: For real-time data retrieval, potentially using services like

2. Aim of the Project:-

The aim of the “Currency Convertor Using Swing” in advanced Java programming ,
focusing on GUI development, is to create an interactive application that simulates
essential currecy convertor operations.

Page | 4
Government Polytechnic Arvi
3. Intended Course Outcomes:-

CO(a). Develop programs using GUI framework (AWT and Swing).


CO(b). Handle events of AWT and Swings Components.
CO(c). Develop Java programs to handle events in Java Programming.

4. Proposed Methodology:-

1. Research: Analyze existing file explorer applications to identify essential


features.

2. Design: Create wireframes and a layout for the user interface.

3. Implementation: Use Java to code functionalities like browsing, file


operations, and viewing properties.

4. Testing: Conduct unit tests and user testing to ensure reliability and usability.

5. Feedback: Gather input from users to refine the application.

Page | 5
Government Polytechnic Arvi
5. Resources Required:-

Sr. Name of Specifications Quantity Remarks


No. Resource

Computer i5 ,RAM=8GB,
SSD=512GB
1 Computer System 1
Windows 10, 12th gen

2 Operating system Windows 10 1

3 Software Notepad++,VS-Code 1

Any other As
4 Browser : Google Chrome, required
resources used
Microsoft edges

6. Group Members:-

Sr. No. Student Name Signature

07 Rakesh S.Raut

08 Vinit D.Sahare

19 Soham S.Bijwar

Page | 6
Government Polytechnic Arvi
7. Action Plan:-

Planned
Planned Team
Sr.No Details of Activity finish
start date Members
date
To discuss and get the topic of
All
1 micro project.

Start planning on topic of


All
2 microproject.
Collect information about our
3 All
topic.
Distribute works within group
4 All
members.
To start with creating with main
5 copy of microproject. All
Collect different
information about micro
6 All
project.
Initiate different views about
7 All
micro project.

Editing process must be done


All
8 before hard copy.

Check soft copy properly before


9 preparing of hard copy. All

10 To start creating copy properly. All


Checking the information from
11 All
monitor.

12 Check the soft copy. All


To present soft copy via G-
13 All
mail.
Represented the hard copy of main
All
14 microproject.

Page | 7
Government Polytechnic Arvi
Part B – MicroProject Report

1. Rationale: -

The Currency Converter Using Swing project is driven by the increasing


relevance of global commerce and travel, where individuals and businesses need
reliable tools to convert currencies efficiently. By developing this application,
users gain practical experience in Java and the Swing framework, which are
essential for creating platform-independent graphical user interfaces.

Integrating real-time exchange rates through APIs not only enhances the
application’s functionality but also introduces developers to important concepts in
web services and data handling. This project fosters problem-solving skills
through challenges like input validation and exception handling while emphasizing
user-centric design principles for a better experience.

Additionally, the application is easily extendable, allowing for features like


cryptocurrency support or historical data analysis, making it a valuable asset in a
developer's portfolio and a comprehensive learning opportunity that bridges theory
with practical application.

2. Intended Course Outcomes:-

CO(a). Develop programs using GUI framework (AWT and Swing).


CO(b). Handle events of AWT and Swings Components.
CO(c). Develop Java programs to handle events in Java Programming.

Page | 8
Government Polytechnic Arvi
3. Literature Review:-

The development of a Currency Converter application using Java Swing integrates various
aspects of programming, user interface design, and financial technology. Java, known for its
platform independence, and the Swing framework, which offers a robust toolkit for creating
graphical user interfaces, are foundational to this project. Deitel and Deitel (2016) highlight
Swing’s lightweight components and event-driven model, making it ideal for interactive
applications like a currency converter.
Effective user interface design is crucial for usability; Norman (2013) emphasizes
the importance of intuitive layouts and user feedback, while Shneiderman and Plaisant (2010)
advocate for minimizing user errors, particularly in applications dealing with financial data. In
the realm of financial technology, Arner et al. (2016) note that real-time currency conversion
enhances user experience and trust, underscoring the need for accurate data through API
integration. As discussed by Chen et al. (2020), incorporating reliable external data sources is
essential for maintaining accuracy in conversions.
However, integrating APIs can introduce complexities related to data handling, with
resources like Baeldung (2020) providing insights into making HTTP requests and parsing
JSON data. Additionally, developers face challenges such as ensuring accurate currency formats
and handling exceptions, as highlighted by Pahlavan et al. (2018). Overall, this literature review
emphasizes the importance of combining programming skills, user-centric design, and financial
insights to create a robust and user-friendly currency converter application..

Page | 9
Government Polytechnic Arvi
4. Code:-

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class CurrencyConverter extends JFrame {


private JTextField amountField;
private JComboBox<String> currencyFrom;
private JComboBox<String> currencyTo;
private JButton convertButton;
private JLabel resultLabel;

// Hardcoded exchange rates


private static final double INR_TO_USD = 0.012; // Example rate
private static final double USD_TO_INR = 84.07; // Example rate

public CurrencyConverter() {
setTitle("Currency Converter");
setSize(400, 200);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new FlowLayout());

amountField = new JTextField(10);


currencyFrom = new JComboBox<>(new String[]{"INR", "USD"});
currencyTo = new JComboBox<>(new String[]{"USD", "INR"});
convertButton = new JButton("Convert");
resultLabel = new JLabel("Result: ");

add(new JLabel("Amount:"));
add(amountField);
add(new JLabel("From:"));
add(currencyFrom);
add(new JLabel("To:"));
add(currencyTo);
add(convertButton);
add(resultLabel);

convertButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
convertCurrency();
}
});
}

private void convertCurrency() {


Page | 10
Government Polytechnic Arvi
try {
double amount = Double.parseDouble(amountField.getText());
String from = (String) currencyFrom.getSelectedItem();
String to = (String) currencyTo.getSelectedItem();
double convertedAmount;

if (from.equals("INR") && to.equals("USD")) {


convertedAmount = amount * INR_TO_USD;
} else if (from.equals("USD") && to.equals("INR")) {
convertedAmount = amount * USD_TO_INR;
} else {
convertedAmount = amount; // Same currency
}

resultLabel.setText(String.format("Result: %.2f %s", convertedAmount, to));


} catch (NumberFormatException ex) {
JOptionPane.showMessageDialog(this, "Invalid amount. Please enter a valid number.");
}
}

public static void main(String[] args) {


SwingUtilities.invokeLater(() -> {
CurrencyConverter converter = new CurrencyConverter();
converter.setVisible(true);
});
}
}
5.Output :-

Page | 11
Government Polytechnic Arvi
Page | 12
Government Polytechnic Arvi
Conclusion :-

The Currency Converter application developed using Java Swing provides a practical
and user-friendly tool for converting between Indian Rupees (INR) and US Dollars
(USD). This project highlights the application of fundamental programming concepts,
such as event-driven programming and user interface design, in creating a functional
software solution. By utilizing Swing, the application demonstrates how to build an
interactive GUI that enhances user experience through intuitive input fields and clear
output displays.

1. Skill Development:-

Participants in this project will significantly enhance their Java programming skills,
particularly in file handling and GUI design. Working on a project that involves both
back-end file operations and front-end graphical design challenges participants to think
holistically about software development. Learners will develop skills in:

• File Operations: Gaining proficiency in reading, writing, and manipulating files


and directories using Java APIs.
• GUI Development: Mastering the use of Java’s Swing or JavaFX for creating
responsive and user-friendly graphical interfaces.
• Problem Solving: Addressing real-world challenges in software development,
such as managing user input, error handling, and improving application
performance.
• Team Collaboration: If completed in groups, participants will develop
teamwork and communication skills that are crucial for professional software
development projects.

Page | 13
Government Polytechnic Arvi
2. Application of Microproject:-

The Currency Converter application can serve various practical purposes across different
user groups, enhancing its relevance in real-world scenarios. Here are several key
applications:
1. Travelers and Tourists
Travelers often need to convert currencies when visiting foreign countries. This
application enables tourists to quickly and easily convert their home currency to the
local currency, helping them manage expenses and budget effectively during their trips.
2. Online Shoppers
With the rise of global e-commerce, consumers frequently encounter prices listed in
different currencies. The Currency Converter can assist online shoppers in comparing
prices and understanding the cost of products from international sellers, ultimately
aiding their purchasing decisions.
3. Small Businesses and Freelancers
Small businesses engaged in international trade or freelancers working with clients
abroad can benefit from this application. It helps them calculate costs, quotes, and
invoices in different currencies, ensuring transparency and accuracy in financial
transactions.
4. Educational Use
The Currency Converter can be an educational tool for students learning about finance,
economics, or programming. It provides a hands-on opportunity to understand currency
conversion principles, user interface design, and the integration of external data sources
(for future API enhancements).
5. Financial Analysts and Investors
Financial analysts and investors often need to monitor currency fluctuations and convert
currencies for investment analysis. While the current application provides basic
functionality, integrating real-time exchange rates could make it a valuable tool for
professionals in the finance sector.
6. Integration with Other Applications
The Currency Converter could be integrated into larger applications, such as budgeting
tools or travel planning apps, enhancing their functionality by providing currency
conversion as a feature. This makes it a versatile component that can be leveraged in
various software solutions.

Page | 14
Government Polytechnic Arvi
References :-

• Oracle Java Documentation: Official documentation for Java’s file handling


and
GUI development, available at https://docs.oracle.com/javase/.

• W3 Schools : https://www.w3schools.com/java/

• Online Resources and Tutorials: Various online platforms, including


YouTube tutorials and Java programming websites, provide step-by-step
guidance for implementing file explorers and developing GUI applications in
Java.

• Java AWT Tutorial: https://www.javatpoint.com/java-awt

• Java SWING Tutorial: https://www.javatpoint.com/java-swing

• YouTube:https://www.youtube.com/watch?v=qin2MSOMY7U&list=PLCRo
gJ_v4BQUuRtS3t_s3TpGFHk8Rsraz

• Books:- 1)Tech Knowledge Publications


2) Tech-Neo Publications

Page | 15
Government Polytechnic Arvi

You might also like