EXP 2 PROGRAM TO IMPLEMENT CURRENCY CONVERTER, DISTANCE CONVERTER AND TIME CONVERTER USING PACKAGES
- Get link
- X
- Other Apps
EX NO: 2
PROGRAM TO IMPLEMENT CURRENCY CONVERTER, DISTANCE
CONVERTER AND TIME CONVERTER USING PACKAGES
AIM
To develop a javax application to implement currency converter, distance converter and time converter
using the concept of packages.
PROCEDURE
1. Create a Package currencyconversion and place the class currency under the package
2. Create the methods to perform currency conversion from dollar to rupee, rupee to dollar, euro to
rupee, rupee to euro, yen to rupee and rupee to yen.
3. Create the package distanceconverion and create the class distance within the package
4. Create the methods to convert from meter to km, km to meter, miles to km,km to miles
5. Create the package timeconversion and create the class timer .Create the methods to convert
from hours to minutes ,hours to seconds , minutes to hours and seconds to hours
6. Create a class and import the packages currencyconversion, distanceconversion and time
conversion. Create the objects for the class currency, distance and timer.
7. Get the choice from the user and invoke the methods to perform the corresponding conversion
and display the value.
- Get link
- X
- Other Apps
Comments
Post a Comment