A program that can be used in many scenarios
Answer:
See attached file for complete detailed code.
Explanation:
See attached file.
Answer:
A Telephone, Printer, Computers, Security Monitor
/*
Since we have to check the first two options only as mentioned in last part of question the loop will work 2 times only and will compare the cost of first element and second and assign the healthoption accordingly
*/
for(int i =0;i<=1;i++){
if(annualCost[i]<annualCost[i+1]
best2 = healthOption[i]
else
best2 = healthOption[i+1]
}