This preview shows page 1. Sign up to view the full content.
Unformatted text preview: iii. If Weight Loss 1 > Weight Loss 2 Then Weight Difference = Weight Loss 1 Weight Loss 2 Amount Owed = Weight Difference * 2.25 Name 1 pays Name 2 iv. If Weight Loss 1 < Weight Loss 2 Then Weight Difference = Weight Loss 2 Weight Loss 1 Amount Owed = Weight Difference * 2.25 Name 2 pays Name 1 v. Else Weight Difference = 0 Tie, nobody pays d. Display Output: i. Name 1 ii. Name 2 iii. Weight Loss 1 iv. Weight Loss 2 v. Weight Difference vi. Amount Owed...
View Full Document
This homework help was uploaded on 04/11/2008 for the course CS 105 taught by Professor Dianaspringer-lund during the Spring '07 term at Central Washington University.
- Spring '07