Question: Tasks: Create a Currency Converter C# application 1. Add a Dropdownlist for selecting input currency and selecting output currency must contain the items BWP and
Tasks:
Create a Currency Converter C# application
1. Add a Dropdownlist for selecting input currency and selecting output currency must contain the items BWP and GBP [5 marks]
2. Add a textbox for entering the input currency must only accept valid numbers, and should not accept empty strings or character values. Appropriate validation mechanisms must be implemented to ensure that users are prevented from entering such invalid input. In an event that the input entered is not valid then an error message should be displayed. [15 marks]
3. The application should use appropriate mechanisms to ensure that it prevents the user from selecting the same currency for input currency and output currency. An error message must be displayed in the event that the user selects the same currency for both input and output currencies [10 marks]
4. Add a button for converting the currencies. If the provided input is valid, the application must compute and display the converted amount when the Convert Currency button is clicked. The rates for calculating the conversion from one currency to another are shown in table 1 below. [15 marks]
Table 1: Rates
| Input Currency | Output Currency | Rate |
| BWP | GBP | 0.063 |
| GBP | BWP | 15.86 |
5. Add a reset button. The reset button must set the values for the input combo-box, input currency text field, output combo-box, and converted amount textbox to BWP, empty, BWP, and empty respectively. [5 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
