Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I removed the : symbol from elif statement, and it still won't run. I will paste entire code. materialCostList = [] laborCostList = []

Hello, I removed the : symbol from elif statement, and it still won't run. I will paste entire code.

materialCostList = []

laborCostList = []

overheadCostList = []

projectBenefitList = []

print('Project Analysis Program')

print('For MIS525')

print('February 2023 Session')

print('By Justin Lang')

continueAnalysis = 'Y'

while continueAnalysis == 'Y':

materialCostList.append(float(input('Enter Material Cost: ')))

laborCostList.append(float(input('Enter Labor Cost: ')))

overheadCostList.append(float(input('Enter Overhead Cost: ')))

projectBenefitList.append(float(input('Enter Projected Benefit: ')))

continueAnalysis = input('Would you like to enter another project? (Y/N): ')

projectCounter = 0

for dataItem in materialCostList:

totalProjectCost = materialCostList[projectCounter] + (laborCostList[projectCounter] + overheadCostList[projectCounter])

projectProfit = projectBenefitList[projectCounter] - totalProjectCost

projectProfitPercent = projectProfit / totalProjectCost

print('========================================')

print('--- Summary Report for Project ' + str(projectCounter + 1))

print('Prepared by: John Doe')

print('Material Cost: ' + str(materialCostList[projectCounter])) print('Labor Cost: ' + str(laborCostList[projectCounter])) print('Overhead Cost: ' + str(overheadCostList[projectCounter]))

print('Total Cost: ' + str(totalProjectCost)) print('Cost Savings or Revenue Increase: ' + str(projectBenefitList[projectCounter]))

#Ask user for input

materials_cost = input('Enter materials cost: ')

labor_cost = input('Enter labor cost: ')

overhead_cost = input('Enter overhead cost: ')

projected_benefit = input('Enter projected benefit: ')

#Convert inputs to float

materials_cost = float(materials_cost)

labor_cost = float(labor_cost)

overhead_cost = float(overhead_cost)

projected_benefit = float(projected_benefit)

#Calculate total project cost, profit/loss, and percent profit/loss

total_cost = (materials_cost + labor_cost) + overhead_cost

profit_loss = projected_benefit - total_cost

percent_profit_loss = (profit_loss / total_cost) * 100

#Output results

print('----Project Summary Report----')

print('By: Justin Lang')

print('Materials Cost:' + str(materials_cost))

print('Labour Cost:' + str(labor_cost))

print('Overhead Cost:' + str(overhead_cost))

print('Total project cost: $', total_cost)

print('Profit/loss: $', profit_loss)

print('Percent profit/loss: ', percent_profit_loss, '%')

if percent_profit_loss < 0:

print('Interpretation: Project not recommended for approval.')

elif percent_profit_loss == 0:

print('Interpretation: Neutral')

elif percent_profit_loss <= 0.05:

print('Interpretation: Recommended for approval.')

else:

print('Interpretation: Highly recommended for approval.')

projectCounter += 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions