Challenge 2 - Currency Converter using a POST method Create a file called currency.php. In this task, you will be creating a currency converter. All programming must be done in PHP (no JavaScript)....

Challenge 2 - Currency Converter using a POST method Create a file called currency.php. In this task, you will be creating a currency converter. All programming must be done in PHP (no JavaScript). The requirements are: • The currency input value must be accepted from a text box, in an HTML form. • The user must be given the option to: o Set the currency type of the input value (converting from)  Types are: Canadian, American, Euro, British Pound and Chinese Yuan  You need to use the appropriate flags as icons beside each currency type  Hint: Use radio buttons o Set the currency type of the desired output value (converting into)  Types are: Canadian, American, Euro, British Pound and Chinese Yuan  You need to use the appropriate flags as icons beside each currency type  Hint: Use radio buttons • Error checking must be done to ensure that the user has entered a number. If they did not, they should be notified of the error • Not using flags will results in a significant deduction Check for the case when converting from/to with the same currency that the amount does not change • If the user entered a number, the number should now be converted to the requested currency unit. The conversion logic should be programmed in a function. The function should take three parameters: the amount to be converted, the input currency and the currency to be converted to. Once complete, the function should return the converted amount. • Finally, display the original amount and the converted amount to the user, with appropriate flags and currency symbol. • For conversion rate, please visitClick hereor even a Google search can suffice.
Mar 15, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here