Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- people=int(input("Enter amount of citizens"))
- if people>9 and people<37:
- if people > 24:
- carers=3
- people+=carers
- else:
- carers=2
- people+=carers
- if people>11 and people<17:
- coach=150
- meal=14.00
- ticket=21
- elif people>16 and people<27:
- coach=190
- meal=13.50
- ticket=20
- else:
- coach=225
- meal=13
- ticket=19
- totalCost=coach+(people*meal)+(people*ticket)
- citizenCost=totalCost/(people-carers)
- print("Total cost is ", str(totalCost))
- print("Citizen cost for is ", str(citizenCost))
- else:
- print("Out of range")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement