- 1

Can anyone explain the question of sololearn quiz "hovercraft"? I can't quite get that question. Thank you already🤗

Question: You run a hovercraft factory. Your factory makes ten hovercrafts in a month. Given the number of customers you got that month, did you make a profit? It costs you 2,000,000 to build a hovercraft, and you are selling them for 3,000,000. You also pay 1,000,000 each month for insurance. Task: Determine whether or not you made a profit based on how many of the ten hovercrafts you were able to sell that month. Input Format: An integer that represents the sales that you made that month. Output Format: A string that says 'Profit', 'Loss', or 'Broke Even'. Sample Input: 5 Sample Output: Loss

11th Jun 2021, 4:16 AM
Rishi
Rishi - avatar
2 ответов
+ 3
H is for hovercraft H cost= 2 000 000 price= 3 000 000 10 H are made per month So, you make 10 H in one month, how much will it cost you? 10 H × 2 000 000 and include insurance +1 000 000 10 H × 2 000 000 + 1 000 000 = 21 000 000 Now, let's say you sold X=5 hovercrafts, how much did you earn? 5H × 3 000 000 = 15 000 000 So, you've spent 21 000 000 and earned 15 000 000, which means you are in minus, output is Loss. I gave an example, the number of sold hovercrafts was X=5. But it could be any number. So, your X is the user input.
11th Jun 2021, 4:30 AM
Lofty
Lofty - avatar
+ 2
Quanti got it thank you
11th Jun 2021, 5:04 AM
Rishi
Rishi - avatar