Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Write only the Python program for this problem. Project Revenue A construction company is maintaining the list of projects it is doing and the
3. Write only the Python program for this problem. Project Revenue A construction company is maintaining the list of projects it is doing and the annual profit it earns from those in two separate lists. Write a program that takes input for project labels and revenue and processes it. Organize your program into Main program, and two functions. The two separate functions do the following: Function1: Input function: Takes input for number of projects (N) Takes input of labels of project names (ex: "RD101","BLD102"...); it stores these in a List. Give this list a name. Takes input of the annual profit for each project in the same order, it stores these in a second list. Give this list a name Function2: Summary function: Calculates the total annual profit, i.e. the sum of profits from all projects Calculates the percent share of each project in total profit and store it in separate list. Percent share means: For example, the profit of project "RD101" is 5,00,000 and the profit is 20,00,000. The %share is 5,00,000/20,00,000*100=25. Prints the percent shares of all projects. If you have time do this: Now, asks the user what data the user wants: 1. total profit 2: profit for one project or 3 percent share for one project. Then depending on what the user wants the program prints the data
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started