Monday, June 18, 2012

Homework 3: Operations-1

1. Write an expression that computes the sum of the two variables  verbalScore and  mathScore (already declared and assigned values).

verbalScore + mathScore

2. Given the variables  taxablePurchases and  taxFreePurchases (already declared and assigned values), write an expression corresponding to the total amount purchased.

taxablePurchases + taxFreePurchases

3. Write an expression that computes the difference of the variables  endingTime and  startingTime .

endingTime - startingTime

4. Given the variables  fullAdmissionPrice and  discountAmount (already declared and assigned values), write an expression corresponding to the price of a discount admission. (The variable  discountAmount holds the actual amount discounted, not a percentage.) 

fullAdmissionPrice - discountAmount

No comments:

Post a Comment