السلام عليكم ورحمة الله وبركاته
ارجوا المساعده في حل هذه المسأله عن طريق الجافا سكريبت
--------------------------------------------------------
IS443: Internet Applications
HW #2: JavaScript
Order Form with Money Converter
- Create a basic web page named lastname-hw2.htm using best coding practices.
- Use Your Name: Homework #2 as the title of the web page. Replace the phrase Your Name in this step and in all following steps with your actual first and last names.
- Create a web page for an international store that sells products of your choosing.
- The page should contain the name of your fictional company, along with the basics needed to flesh out the rest of the page.
- The page should contain a form where users may:
- The page should contain the name of your fictional company, along with the basics needed to flesh out the rest of the page.
i. View the price, in Riyals of the available items. There should be a minimum of three items.
ii. Enter or select which items the user wishes to buy. (Users should be able to buy one, two, or all three items).
iii. Select which currency (Riyals, US$, Euros, or Yen) he will use to pay.
iv. Click on a button (or buttons) to call a function (or functions) to perform calculations.
- The calculation function(s) should determine and display on the page:
- The calculation function(s) should determine and display on the page:
i. How much, in Riyals, the total order is.
ii. How much, in the selected currency, the total order is.
- Hints:
- Hints:
i. Currency conversion rates are readily available online, at Yahoo Finance (http://finance.yahoo.com/currency?u) for example.
ii. The formula for converting currency is Currency1 * R = Currency2, where Currency1 is the amount of starting currency, R is the conversion rate, and Currency2 is the desired currency.
iii. Example: You determine that 1 US dollar is worth .2946 Kuwaiti dinars. Thus the conversion rate is .2946. The purchase price of an item in dollars is $38.99. In Kuwaiti dinars this same item would be 38.99 * .2946 = 11.49 dinars.
- Be sure to appropriately comment your code, adding a comment to each function to describe its purpose and after each variable declaration to describe the data contained in the variable.
- Test and debug your page as necessary. Upload the final product to the server.
-----------------------------------------------------
اتمنى اللي يعرف يساعدني وله جزيل الشكر
تحياتي