首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
BUS 104编程辅导、讲解Python程序、Java,c++语言程序辅导 解析Haskell程序|调试Web开发
项目预算:
开发周期:
发布时间:
要求地区:
BUS 104 Introduction to Computational Thinking
Lab Assignment #4
Spring 2021
This assignment must be turned into Canvas before midnight on the day of your lab session. You may
help each other and work together, but it is imperative that you do your own work. Remember that not
only is academic dishonesty a serious, punishable offense, but you are also bound by the Code of Love
and Honor. Do not cheat.
PROBLEM DESCRIPTION
When developing a capital budget, an organization typically evaluates a number of alternative projects.
In this lab you will expand your Net Present Value calculator to evaluate multiple projects. The program
will calculate and display the NPV of each project. The program will also inform the user of the best
project to implement based on the highest calculated Net Present Value for all project options.
As a reminder, the formula for the net present value calculation is shown below:
𝑁𝑃𝑉 is the net present value, n is the final time period, t is the time period being evaluated,
𝐶𝐹𝑡
is the cash flow at time period t, and k is the cost of capital
The following two projects will be evaluated using the new program as a test case.
WHAT YOU NEED TO DO
Write a lab program to add the following features to your Net Present Value calculator:
An outer loop to allow the user to evaluate multiple projects. After each project is evaluated,
the program will ask the user if they would like to calculate the NPV for another project. The
loop will end when the user enters a negative response to that question. Make sure your
program clearly tells the user what they must enter to end the outer loop. Even though the test
case has only two projects, the program should accept any number of projects.
Before each project is evaluated, the user will be asked to input the name of the project, the
cost of capital, and the time periods. The cost of capital and time periods cannot be hardcoded
like they were in the homework, since they may vary by project. Make sure your program
clearly tells the user how the cost of capital and time period should be entered. Will cost of
capital be entered as a whole percentage (and then divided by 100), or as a decimal? Should the
user enter the number of the last time period or the total time periods for the project? That will
affect the subsequent calculations.
The loop evaluating each program will be similar to the homework. The cash flow entries,
output of the present value at each time period, and output of the net present value of each
project will be similar to the homework.
The program will no longer recommend acceptance or rejection for each project. Instead, two
variables should be initialized before the outer loop begins to track the best project’s name and
the best net present value. (Hint: Initialize the best project’s name to something like none and
the best net present value to 0.) After each project’s net present value is calculated, determine
if it’s better than the best net present value calculated so far. If it is, update the best project’s
name variable and the best net present value variable to the information for the current project.
After all projects are evaluated the program should print out the name of the best project for
the firm to include in their capital budget. Using the test case for this lab, the recommendation
would be to choose project X-Ray.
Remember, before you submit, to write a short “preamble” for your program—a few sentences in a
block comment with your name and section that broadly describe the function and purpose of the
program. Also, check that you have included sufficient inline comments and that you have tested and
saved your final version before submitting the web page URL.
On the next page is an example of the dialog between the user and the program when running the test
case.
This program will calculate the Net Present Value of multiple investment
options.
What is the name of the project to be evaluated? Delta
What is the cost of capital as a decimal? 0.04
What is the final time period? 3
Enter the cash flow information for project Delta:
What is the cash flow at time period 0? -10000.75
The present value of cash flow 0 is: $-10001
What is the cash flow at time period 1? 3500
The present value of cash flow 1 is: $3365
What is the cash flow at time period 2? 3500
The present value of cash flow 2 is: $3236
What is the cash flow at time period 3? 3500
The present value of cash flow 3 is: $3111
The Net Present Value of project Delta is: $-288
Would you like to evaluate another project (Y, N)? Y
What is the name of the project to be evaluated? X-Ray
What is the cost of capital as a decimal? 0.08
What is the final time period? 4
Enter the cash flow information for project X-Ray:
What is the cash flow at time period 0? -10000.75
The present value of cash flow 0 is: $-10001
What is the cash flow at time period 1? 5500
The present value of cash flow 1 is: $5093
What is the cash flow at time period 2? 3000
The present value of cash flow 2 is: $2572
What is the cash flow at time period 3? 3000
The present value of cash flow 3 is: $2381
What is the cash flow at time period 4? 1000
The present value of cash flow 4 is: $735
The Net Present Value of project X-Ray is: $780
Would you like to evaluate another project (Y, N)? N
The firm should choose project X-Ray.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!