... 01: Examine the following HTML Form: Enter Course Code: ITCS347 Enter Tests Marks seperated by comma 11,18 Enter Final Exam Marks 29 Enter Project Marks 7 Enter Assignments Marks out of % 15 Enter...


...<br>01: Examine the following HTML Form:<br>Enter Course Code: ITCS347<br>Enter Tests Marks seperated by comma 11,18<br>Enter Final Exam Marks 29<br>Enter Project Marks 7<br>Enter Assignments Marks out of % 15<br>Enter Assignment 14<br>OEnter Assignment<br>Enter Assignment 11.5<br>OEnter Assignment<br>Save Course/Total<br>Calculate View Courses<br>out of 35<br>out of 40%<br>out of % 10<br>晶<br>Note: This form is submitted to itself<br>Gra<br><form method='post'><br>Enter Course Code: <input name='code' ><br /><br>Enter Tests Marks separated by comma <input name-'tests' /> out of <input name='weight|]' />% <br /><br>Enter Final Exam Marks <input name='finalExam'/> out of 40%<br/><br><input type=Enter Project Marks

out of %



Enter Assignments Marks out of %



Enter Assignment



Enter Assignment



Enter Assignment



Enter Assignment



Adc Refi you
Save Course/Total



Write a PHP code that do the following; "/>
Extracted text: ... 01: Examine the following HTML Form: Enter Course Code: ITCS347 Enter Tests Marks seperated by comma 11,18 Enter Final Exam Marks 29 Enter Project Marks 7 Enter Assignments Marks out of % 15 Enter Assignment 14 OEnter Assignment Enter Assignment 11.5 OEnter Assignment Save Course/Total Calculate View Courses out of 35 out of 40% out of % 10 晶 Note: This form is submitted to itself Gra

Enter Course Code:



Enter Tests Marks separated by comma

out of
%


Enter Final Exam Marks

out of 40%

Enter Project Marks

out of %



Enter Assignments Marks out of %



Enter Assignment



Enter Assignment



Enter Assignment



Enter Assignment



Adc Refi you
Save Course/Total




Write a PHP code that do the following;
Write a PHP code that do the following:<br>1. When the form is submitted using Calculate Button:<br>a Your code should verify if the total weights is equal to 100%, otherwise, appropriate error message should<br>be displayed.<br>b. When the total weights is valid, your code should find and display the total marks as follows:<br>ITCS347 total marks = 77.75 out of 100<br>(note that total = tests + final exam + project (if applicable) + average assignments (if applicable))<br>Note that the number of assignments checkbox/text fields in HTML is unknown<br>c. If the user selected Save Course/Total, your code should save it inside a cookie called mycourses. The<br>cookie value must have an associative array structure, whose key is the course code, and its value is the total<br>marks. The cookie should expires after 5 day from creation. Note that your value should handle saving all<br>new/old courses' codes/totals in the array on the same computer.<br>2. When the View Courses button is clicked, your code should display all the courses codes/totals stored in the<br>cookie called mycourses as shown below. Appropriate message should be displayed in case no cookie is found.<br>ITCS333 has a total of 87.333333333333 out of 100<br>ITCS113 has a total of 88 out of 100<br>MATHS101 has a total of 77 out of 100<br>ITCS347 has a total of 77.75 out of 100<br>3. Your code should display the form again after each case above.<br>Note: in your answer, if you want to display the form again, just write: /Form Here<br>Text style<br>T AA .<br>BIUA E<br>lili<br>

Extracted text: Write a PHP code that do the following: 1. When the form is submitted using Calculate Button: a Your code should verify if the total weights is equal to 100%, otherwise, appropriate error message should be displayed. b. When the total weights is valid, your code should find and display the total marks as follows: ITCS347 total marks = 77.75 out of 100 (note that total = tests + final exam + project (if applicable) + average assignments (if applicable)) Note that the number of assignments checkbox/text fields in HTML is unknown c. If the user selected Save Course/Total, your code should save it inside a cookie called mycourses. The cookie value must have an associative array structure, whose key is the course code, and its value is the total marks. The cookie should expires after 5 day from creation. Note that your value should handle saving all new/old courses' codes/totals in the array on the same computer. 2. When the View Courses button is clicked, your code should display all the courses codes/totals stored in the cookie called mycourses as shown below. Appropriate message should be displayed in case no cookie is found. ITCS333 has a total of 87.333333333333 out of 100 ITCS113 has a total of 88 out of 100 MATHS101 has a total of 77 out of 100 ITCS347 has a total of 77.75 out of 100 3. Your code should display the form again after each case above. Note: in your answer, if you want to display the form again, just write: /Form Here Text style T AA . BIUA E lili
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here