Answer:
Incremental technique is the way in which software is built and delivered in pieces. The concept is to keep the client and developer on same page and the client is known as a non tech person, so he should be given software in piece by piece to avoid any confusion and sudden change.
Agile method is the best example of this technique in which steps are defined on contract basis and the software is delivered and build by pieces to keep client and developer on same page.
/*
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]
}
Answer:
View image below.
Explanation:
They're just asking you to create a num2bin function on Cpp.
If you search for "num2bin in C", you can find a bunch of answers for this if you think my solution is too confusing.
One way to do it is the way I did it in the picture.
Just copy that function and use it in your program. The rest you can do yourself.