task
unknown
plain_text
3 years ago
1.0 kB
9
Indexable
ACTIVITY 6: JAVASCRIPTING Assume that: q1=2.0 q2=3.0 act1=2.5 act2=3.0 act3=2.0 exam=2.5 Write a javascript that will display "Congratulations, you passed the subject!" if the FG is greater than or equal to 3.0, otherwise it displays "Sorry, you need to re-enrol the subject.". FG= 40% averageQuiz + 30% averageActivity +30%exam ACTIVITY 7: JAVASCRIPTING Assume that: GrossIncome=35000 Deduction=3000 Write a javascript that will compute and display the GrossIncome,NetIncome, and Tax. The Tax is computed according to the following scheme: - 3% of NetIncome up to 8000 - 5% of NetIncome from 8001 to 15000 - 8% of NetIncome over 15000 Formula: NetIncome=GrossIncome - Deduction ACTIVITY 8: JAVASCRIPTING Assume that: num=123456 Write a javascript that will display the SUM OF THE ODD AND EVEN POSITIONED DIGIT. Use loop statement. EXAMPLE: num=12345 SumOfOddPosition= 1 + 3 +5 = 9 SumOfEvenPosition = 2+4=6 OUTPUT: SumOfOddPosition= 9 SumOfEvenPosition =6
Editor is loading...