![]() |
| | |||||||
| تطوير المواقع و السكربتات Ajax XML CSS JavaScript PHP Perl CGI seo Search Engine web2 للمواقع للمدونات للصفحات الويب تو ويب ثري سي جي اي بيرل نيوك مجلة ادفانسد تصميم سكربت بي اتش بي بالاجاكس تقنية جافا سكربت برمجة اجاكس اكواد الجافا |
![]() |
![]() | ![]() |
![]() | ![]() | ![]() |
![]() | ![]() | |
|
![]() | |
| | أدوات الموضوع | طريقة عرض الموضوع |
| السلام عليكم أنا عم بدرس برمجه سنة تانية وعندي واجب لازم حلو بمادة الجافا سكربت أنا انتهيت منو تقريبا بس في سؤال ما فهمتو و المشكلة انو ما عندي كتير وقت للأسف فياريت ازا حدا بيقدر يشرحلي السؤال شو بدو ويساعدني شوي بكون ممنونه الو هاد هوه السؤال This question is about topics covered in Units 7 and 8. It assesses your understanding of JavaScript syntax and your ability to use functions and event handlers. These are covered in Section 4 of Unit 8 (pp. 49–66). One mark for this question has been reserved for good code layout, including indentation, and for correct spelling and punctuation in prompts and output. As a guideline, try to lay out your code in the same way as the JavaScript examples in the course units. For each part of the question you are expected to submit the working code in your solution document, together with screen shots that demonstrate that it runs correctly. However, if for any reason you have to abandon the question at some stage before the end, you should just submit the code you have completed up to that point, together with suitable screen shots. For each part of the question where you are asked to write or amend code you must copy the JavaScript code into your solution document in the appropriate place for that question and include a correctly named HTML file in the zip archive. Administrators of the ArabShop system interact with it via a browser interface which displays information about current levels of stock, tax payable and other statistics. Main stock levels are constantly monitored by administrators; while these levels naturally diminish as items are sold, new orders constantly arrive in the warehouse, and when they have been processed appear on the system as received stock, separate from the main stock levels. One of the tasks of the administrator is to give the goahead for the received stock to be added to the main stock on the system. Another task is to check on the overall levels of stock for all products, the total value of that stock and the tax payable on it. The file M150_TMA03_2007J_Q3.html has been set up with an HTML form that displays the administrator interface. It also contains the four arrays you will be working with, which are similar to the product arrays in Question 2, except that here the data represented are product descriptions, prices, stock levels and received stock. You will not need to alter the HTML form or the arrays in any way. Open this file in your browser and examine it. You will note that the form provides facilities to display the level of stock of each product; add received stock to the main stock; and calculate the overall stock quantities, the overall value and the tax payable. Various buttons on the form call functions that do these tasks; you will write these functions. (i) Make a copy of the file M150_TMA03_2007J_Q3.html, which we have supplied as a template for this question, and rename it M150_TMA03_2007J_Q3(i).html. The button Show all stock holdings on the main form causes the form to display the levels of main stock and of received stock for each product, which are contained in the parallel arrays productStock and receivedLevels. Pressing the button calls an event handler function showStockLevels(), which fills in the appropriate fields in the form by extracting data from the two arrays and writing it into the relevant fields on the form. Write this function. Test the function by pressing the button Show all stock.[5] Insert a copy of your function into your solution document followed by a screenshot of the browser window showing the result of your test. (ii) Make a copy of the file M150_TMA03_2007J_Q3(i).html and rename it M150_TMA03_2007J_Q3(ii).html. Clicking the button Add receipts to stock calls an event handler function that updates the arrays productStock and receivedLevels, by adding the receipts for each product to the value in productStock, and then setting the values receivedLevels to 0. The system should then display the new totals. Write this function. Test the function by pressing the button Add receipts to stock. [5] Insert a copy of your function into your solution document followed by a screenshot of the browser window showing the result of your test. (iii) Make a copy of the file M150_TMA03_2007J_Q3(ii).html and rename it M150_TMA03_2007J_Q3(iii).html. Clicking the button Calculate totals calls a function calculateTotals(), which will process the stock arrays to calculate the level of main stock, the level of received stock, the total cash value of all stock, main and received, and the tax payable on the stock. A special tax loophole that ArabShop is exploiting is that tax on main stock is 8% but tax on received stock is 6%. Write the function calculateTotals(). Test the function by pressing the button Show all stock followed by the button Calculate totals. [10] Insert a copy of your function into your solution document followed by a screenshot of the browser window showing the result of your test. وهاد الملف المرفق معو كود PHP: وشكرا مسبقا اغاني اسلامية اغاني جديدة اشرطة اناشيد جديدة احلا الاغاني اجمل الاناشيد اخر و افضل البومات - |
الان اخر العروض التجارية والتخفيضات على السفر والسياحة
والفنادق والهواتف المحمولة والازياء والموضه والسيارات وغيرها الكثير على موقع
لقطه
www.logta.com
لقطه دليلك التجاري
| أدوات الموضوع | |
| طريقة عرض الموضوع | |
| |
| | ||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر رد |
| مساعده يا ابو عمرو..مساعده يا أهل الخير | تاء مربوطه بفيونكا | تطوير و صيانة المنتديات vBulletin | 6 | 03-18-2009 05:32 PM |
| ممكن طلب مساعده | عسوولة جده | الهكرز و الاختراق حماية فيروسات اختراق كراك hacker crack virus | 0 | 12-08-2008 11:09 AM |
| مساعده من اخوكم طالب مساعده | طالب مساعده | حراج انترنت مستعمل + جديد للبيع و للشراء | 0 | 10-24-2008 02:18 PM |
| ارجووو مساعده انا في خطر مهم | Mic-pro | تطوير المواقع و السكربتات Ajax XML CSS JavaScript PHP Perl CGI seo Search Engine web2 | 2 | 09-16-2008 05:45 AM |
| ممكن مساعده | عيناوي للابد | الهكرز و الاختراق حماية فيروسات اختراق كراك hacker crack virus | 1 | 02-20-2008 01:15 AM |