Respuesta :
Answer:
#include <iostream>
using namespace std;
int
main ()
{
int annualCost[]={900,1050,1000,10,2};
char healthOption[]={'A','W','L','R','D'};
char best2;
if (annualCost[0] < annualCost[1])
{
best2 = healthOption[1];
}
else
{
best2 = healthOption[0];
}
cout << "Best2 " << best2 << endl;
return 0;
}
Explanation:
Take two array annualCost and healthOption and initialize. Check if annualCost[0] is greater than annualCost[1] best2 (best health care option) is healthOption[0] otherwise best2 is healthOption[1].
Answer:
if (annualCost[0]<annualCost[1])
best2=healthOption[0];
else
best2=healthOption[1];
Explanation: