This is the lines of code that allow for the user to enter in a currency and choose what it should be converted into the code will take £ and then the user can choose from 5 different currencies to which the currency can be converted. The commented out code is my prior code which will run the same as the code bellow but the code bellow is more tidy and easier to read as i am using case statements. As you can see the code contains the currency for that country for example USD is 1.75 and is * by the GBP this will mean it is converted when the input is received.
Posts
Showing posts from 2018