Professional Documents
Culture Documents
Problema
Problema
Problema
fishermen.
Spring - 3000 $
Summer and autumn - 4200 $
Winter - 2600 $
The fishermen use another 5 % discount if they are even number except when it is NOT
autumn – then they do NOT have additional discount.
Write a program to calculate whether the fishermen will gather enough money.
Input
The input is consists of exactly 3 lines:
Output
Print on the console a single line:
If the budget IS enough: "Yes! You have {money left} dollars left."
If the budget IS NOT enough: "Not enough money! You need {money needed} dollars."