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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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)
double gain, PI
gain = accBenefit- accCost
PI = gain / devCost
Display gain, PI
Return PI
Transcribed Image Text:CBA(devCost, accCost, accBenefit) double gain, PI gain = accBenefit- accCost PI = gain / devCost Display gain, PI Return PI
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
Transcribed Image 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
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY