CURRENCY CONVERTER, DISTANCE CONVERTER AND TIME CONVERTER IMPLEMENTATION USING PACKAGES

AIM:

To develop a java application to implement currency converter (Dollar to INR, EURO to INR, Yen to

INR and vice versa), distance converter (meter to KM, miles to KM and vice versa) , time converter (hours to minutes, seconds and vice versa) using packages.

ALGORITHM:

 

1.       Start

2.       Create a Package currencyconversion and place the class currency under the package

3.       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.

               4.       Create the package distanceconverion and create the class distance within the package

               5.       Create the methods to convert from meter to km, km to meter, miles to km, km to miles

     6.       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

7.                           7. Create a class converter and import the packages currencyconversion, distanceconversion and                             time conversion. Create the objects for the class currency, distance and timer.

8.                          8. Get the choice from the user and invoke the methods to perform the corresponding conversion                         and display the value.

            9. Stop

Comments