This shows you the differences between two versions of the page.
cs-142:byu-health-insurance-with-booleans [2015/05/12 12:05] cs142ta created |
cs-142:byu-health-insurance-with-booleans [2015/05/12 13:17] (current) cs142ta |
||
---|---|---|---|
Line 4: | Line 4: | ||
== Solution == | == Solution == | ||
<code cpp> | <code cpp> | ||
+ | /* | ||
+ | Test Case 1: | ||
+ | Input: single, 0 dependents | ||
+ | Output: 74 | ||
+ | Actual: 74 | ||
+ | |||
+ | Test Case 2: | ||
+ | Input: single, 2 dependents | ||
+ | Output: 273.50 | ||
+ | Actual: 273.50 | ||
+ | |||
+ | Test Case 3: | ||
+ | Input: married, 0 dependents | ||
+ | Output: 118.50 | ||
+ | Actual: 118.50 | ||
+ | |||
+ | Test Case 4: | ||
+ | Input: married, 2 dependents | ||
+ | Output: 413.50 | ||
+ | Actual: 413.50 | ||
+ | */ | ||
+ | |||
#include <iostream> | #include <iostream> | ||
#include <string> | #include <string> |