Assignment for CBWP 2203 WEB PROGRAMMING
As an OUM student, you have been assigned to create an online questionnaire for research entitled Job Stress and Burnout among Employees in Malaysia. All respondents to the questionnaire will need to fill in their particulars and questionnaire online. You are given the paper-based version of the questionnaire, as shown in Figure 1. Your task is to transform the paper-based version into an appropriate online version.
You are also requested to do a simple score calculation on Part B of the questionnaire using JavaScript.
For question 1, 2, 3, 4, 6, 8 and 9, the mark for 0 is 0, 1 is 1, 2 is 2, 3 is 3, 4 is 4, 5 is 5 and 6 is 6.
For question 5, 7 and 10, the mark for 0 is 6, 1 is 5, 2 is 4, 3 is 3, 4 is 2, 5 is 1 and 6 is 0.
The example calculation is as follows:
Example 1:
If all responses for question 1, 2, 3, 4, 6, 8 and 9 are 6s, and all responses for question 5, 7 and 10 are 0s then the overall rating is equal to
((6 + 6 + 6 + 6 + 6 + 6 + 6 + 6 + 6 + 6) / 60) x 100% = 100%
Once the form is submitted, you should display pop out message {Your stress level is 100%}.
Example 2:
If the response for question 1 is 2, 2 is 4, 3 is 6, 4 is 1, 5 is 2, 6 is 5, 7 is 2, 8 is 4, 9 is 6 and 10 is 4 then the overall rating is equal to
((2 + 4 + 6 + 1 + 4 + 5 + 4 + 4 + 6 + 2) / 60) x 100% = 63.3%
Once the form is submitted, you should display pop out message {Your stress level is 63%}.
Please prompt an error message if any field is left blank by the user.
This comment has been removed by the author.
ReplyDeletehow do I submit the assignment? do i just need to submit a doc file or do I have to submit the html files too?
ReplyDelete