Discuss the below:
Q1: Creating an application that converts U.S. dollar values to euro values. The application should have methods for getting user input and doing the conversion
Q2: Creating an application that converts U.S. dollar values to euro values. The application should have methods for getting user input and doing the conversion. The application should first ask the user for the current exchange rate between the U.S. dollar and euro. It then asks for a dollar amount and displays the euro amount. It will continue until the user enters $0. The application will trap for any negative dollar values and allow the user to re-enter until they give a non-negative value. You are given the application file and are required to develop the EuroConverter class. Notice that not all methods will be used in actual application, however we want to always design robust classes. EuroConverter UML is as follows:
EuroConverter
------------------
- _conversionRate : double
------------------
+ EuroConverter(initialRate : double)
+ convertToEuros(dollars : double) : double
+ getConversionRate() : double
+ setConversionRatre(newRate : double)