C++ programming Language Cost Benefit Analysis (CBA) is a popular approach to measure the overall benefit of the software system (project) to be developed. The proposed project is expected to gain the...


C++ programming Language


Cost Benefit Analysis (CBA) is a popular approach to measure the overall benefit of the software system (project) to be developed. The proposed project is expected to gain the return if the value of accumulated benefit is greater than the accumulated cost spends for the targeted repayment years. ???????? ???? ?? ???? =??????????? ????????−??????????? ????
The Profitability Index (PI) is measured during CBA to determine whether the project is profitable (good investment), not profitable (poor investment) or break-even (no significant impact). If the PI value is more than 1, the proposed project is considered profitable. If the PI value is less than 1, the proposed project is considered bad investment. If the PI value is equal to 1, the proposed project is considered as break-even. ????????????? ????? (??)=????? ?? ???????? ?????? ?? ????????? ??????????? ???? (???? 0)
Figures 1(a) and 1(b) are the flowcharts of the program proposed to implement CBA as described above. It gets the inputs that are the repayment duration (year), total development cost (devCost), accumulated cost (accCost), and accumulated benefit (accBenefit) to calculate the expected return/loss, PI, and finally determine the project status (good investment, no impact, or poor investment).


Write a C++ program to implement the CBA calculation as specified by the above flowcharts. Table 1 is the test cases that you can use to test the program and the details of the input/output style of the program.


CBA(devCost, accCost, accBenefit)<br>double gain, PI<br>gain = accBenefit- accCost<br>PI = gain / devCost<br>Display gain, PI<br>Return PI<br>

Extracted text: CBA(devCost, accCost, accBenefit) double gain, PI gain = accBenefit- accCost PI = gain / devCost Display gain, PI Return PI
Display 1 Good Investment" Display "Program ends." "Recommendation: status ==1 No Impact" End "Recommendation: Poor Investment" Get cont "/>
Extracted text: Display "Cost-Benefit Analysis (CBA) Calculator" Start char cont = 'y int year double devCost, accCost, accBenefit, status Get year, devCost, accCost, accBenefit Display "CBA Result:" cont is 'y or 'Y? status = CBA(devCost, accCost, accBenefit) "Recommendation: status >1 Good Investment" Display "Program ends." "Recommendation: status ==1 No Impact" End "Recommendation: Poor Investment" Get cont
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here