Write an application in python that computes a business’s potential profits each
ID: 3595559 • Letter: W
Question
Write an application in python that computes a business’s potential profits each year for 20 years using the following assumptions: (1) Gross profit in the first year is projected to be $20,000. (2) Expenses in the first year are expected to be $35,000. (3) Net profit or loss is gross profit minus expenses. (4) Gross profits are expected to increase 10 percent each year. (5) Expenses are expected to increase 4 percent each year. The program will display the profits information for each year; The data should be displayed in groups: Data for years with net loss should be displayed first, followed by data for years with net profit. The program should print a star (asterisk) as the first character for the first year with net profit. Finally, the program should save the data to a file
Your program should contain at least two functions: One function to compute the profits and another to display and save the data.
Explanation / Answer
As the code is very simple I have not documented it if you want to be documented please comment.
If I have missed something please write in comments.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.