ou run a hovercraft factory. Your factory makes ten hovercrafts in a month. Given the number of customers you got that month, di | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

ou run a hovercraft factory. Your factory makes ten hovercrafts in a month. Given the number of customers you got that month, di

It is very interesting how this problem is solved, tried to solve it in July, but it did not work. Please help. I would like to solve the problem on the python.

14th Nov 2020, 8:29 PM
‎ Герман Папанов(הרמן פפנוב)‎
‎ Герман Папанов(הרמן פפנוב)‎ - avatar
8 Answers
+ 3
It's clearly explained. Every month you produce 10 hovercrafts * 2 000 000 = 20 000 000 + insurance 1 000 000 in total expenses for a month 21 000 000. You get the number of customers in the month * 3 000 000 and calculate the difference between the sold hovercrafts and the expenses, then decide what to output.
14th Nov 2020, 9:14 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
‎ Герман Папанов(הרמן פפנוב)‎ , if you need help show your code, so somebody can help you.
14th Nov 2020, 8:31 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
‎ Герман Папанов(הרמן פפנוב)‎ , where did you use the costs, insurance and expenses in your code?
14th Nov 2020, 8:46 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Right away
14th Nov 2020, 8:32 PM
‎ Герман Папанов(הרמן פפנוב)‎
‎ Герман Папанов(הרמן פפנוב)‎ - avatar
14th Nov 2020, 8:41 PM
‎ Герман Папанов(הרמן פפנוב)‎
‎ Герман Папанов(הרמן פפנוב)‎ - avatar
+ 1
It's pretty basic mathematics. Just figure out how many you need to sell in a month to break even. If you sell more, you made a profit, if less, then a loss. A simple if-elif-else to decide your output is all that is needed once you get your input.
14th Nov 2020, 11:43 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
def Need?
17th Jan 2021, 6:55 PM
‎ Герман Папанов(הרמן פפנוב)‎
‎ Герман Папанов(הרמן פפנוב)‎ - avatar
0
I'm telling you, I didn't understand much of this code. And what the program looks like.
14th Nov 2020, 9:11 PM
‎ Герман Папанов(הרמן פפנוב)‎
‎ Герман Папанов(הרמן פפנוב)‎ - avatar