TK1114-4(b) Case Studies.pdf - Case Studies Scientific...

This preview shows page 1 - 10 out of 10 pages.

Case Studies
Scientific Problem
Sigma Notation: Summation ! "#$ % & ' = & 1 + & 2 + & 3 + … + &. 1 + &. Single Loop
Sigma Notation: Summation ! "#$ % ! &#$ ' ( )* = ! "#$ % (( )1 + ( )2 + ( )3 + … + ( )2 1 + ( )2 ) Nested Loop
! "#$ % ! &#$ ' 2)* = ! "#$ % (2) + 4) + 6) + 8)) = (2 + 4 + 6 + 8) + (4 + 8 + 12 + 16) + 6 + 12 + 18 + 24 = (2) + 4) + 6) + 8)) + (2) + 4) + 6) + 8)) + 2) + 4) + 6) + 8) case i=1 case i=2 case i=3
How to program Sigma 2 Notation? total = 0; for (i=1; i<n; i++) { for (j=1; j<m; j++) { data = 2*i*j; total += data; } } System.out.println(“Total “+total); ! "#$ % ! &#$ ' ( )*
Business/Management Problem
Sales Commission Comp 1: Commission percentage is 10% of any sales amount Comp 2: Commission percentage is 10% of sales amount exceed $20 K Comp 3: Commission percentage is based on sales amount below: below RM15 K à no commission between RM15 K – RM50 K à 10% between RM50 K – RM100 K à 15% above RM100 K à 20%
Sales data of Ali Sales Rep #1 Sales Rep #2 Sales Rep #3 Sales Rep #4 Acc GHI Sales Rep #5 $17,500.00

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture